Skip to content

Commit c3dfc6a

Browse files
authored
Merge pull request #136 from target/hadolint-dockerfile
Install Hadolint when git ls-files reports *Dockerfile* anywhere in the tree
2 parents 7060428 + dbb1faf commit c3dfc6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Brewfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ brew "pyenv"
99
# Manage virtualenvs with Pyenv just in case
1010
brew "pyenv-virtualenv"
1111
# Dockerfile linting, but only if we have Dockerfiles
12-
brew "hadolint" unless %x[find . -iname Dockerfile].empty?
12+
brew "hadolint" unless %x[git ls-files '*Dockerfile*'].empty?
1313
# Pre-commit checks, if we have a config
1414
brew "pre-commit" if File.exist?(".pre-commit-config.yaml")
1515

0 commit comments

Comments
 (0)