mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
chore: Add hadolint check for Dockerfiles (#322)
Co-authored-by: Balazs Hamorszky <balihb@gmail.com>
This commit is contained in:
parent
321fb16693
commit
47229003ff
6 changed files with 46 additions and 18 deletions
|
|
@ -1,6 +1,6 @@
|
|||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.0.1
|
||||
rev: v4.1.0
|
||||
hooks:
|
||||
# Git style
|
||||
- id: check-added-large-files
|
||||
|
|
@ -34,3 +34,18 @@ repos:
|
|||
- id: shfmt
|
||||
args: ['-l', '-i', '2', '-ci', '-sr', '-w']
|
||||
- id: shellcheck
|
||||
|
||||
# Dockerfile linter
|
||||
- repo: https://github.com/hadolint/hadolint
|
||||
rev: v2.8.0
|
||||
hooks:
|
||||
- id: hadolint
|
||||
args: [
|
||||
'--ignore', 'DL3027', # Do not use apt
|
||||
'--ignore', 'DL3007', # Using latest
|
||||
'--ignore', 'DL4006', # Not related to alpine
|
||||
'--ignore', 'SC1091', # Useless check
|
||||
'--ignore', 'SC2015', # Useless check
|
||||
'--ignore', 'SC3037', # Not related to alpine
|
||||
'--ignore', 'DL3013', # Pin versions in pip
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue