You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No configuration was specified. Using default configuration
./Dockerfile:8 DL3020 error: Use COPY instead of ADD for files and folders
./Dockerfile:10 DL3000 error: Use absolute WORKDIR
./Dockerfile:19 DL3008 warning: Pin versions in apt get install. Instead of `apt-get install <package>` use `apt-get install <package>=<version>`
...
Output of hadolint --version:
Haskell Dockerfile Linter 2.4.1-no-git
The text was updated successfully, but these errors were encountered:
The help message suggests that the failure threshold makes Hadolint exit
with failure when a rule above **or equal to** the threshold is
violated. This was introduced to the help message with
hadolint@3121fe9
But never updated the behaviour to match the help message.
fixes: hadolint#651
Sorry for the confusion on this. There was a lengthy discussion on whether or not the behavior should be inclusive or exclusive of the threshold itself here and the docs were updated here, but the behavior itself never changed.
The help message suggests that the failure threshold makes Hadolint exit
with failure when a rule above **or equal to** the threshold is
violated. This was introduced to the help message with
3121fe9
But never updated the behaviour to match the help message.
fixes: #651
Expected behavior
It should exit with
1
.Actual behavior
It exits with
0
.Steps to reproduce the behavior
$ hadolint --failure-threshold error --verbose ./Dockerfile
echo $? # prints 0
Output of
hadolint --version
:The text was updated successfully, but these errors were encountered: