Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

threshold: tune behaviour to match help message #653

Merged
merged 1 commit into from Jun 10, 2021

Conversation

m-ildefons
Copy link
Collaborator

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

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
@lorenzo
Copy link
Member

lorenzo commented Jun 10, 2021

Thanks for fixing it!

@lorenzo lorenzo merged commit c0f7ec3 into hadolint:master Jun 10, 2021
m-ildefons added a commit to m-ildefons/hadolint that referenced this pull request Mar 13, 2022
- Fix wrong information about the behavior of the `--failure-threshold`
  option.

- Add instructions on how to build Hadolint against modified libraries
  to the development section.

Since hadolint#653 , Hadolint has
treated the failure threshold set by the `--failure-threshold` option as
inclusive and this has been reflected in the `--help` message text. But
the readme has never been updated.

fixes: hadolint#788
lorenzo pushed a commit that referenced this pull request Mar 14, 2022
- Fix wrong information about the behavior of the `--failure-threshold`
  option.

- Add instructions on how to build Hadolint against modified libraries
  to the development section.

Since #653 , Hadolint has
treated the failure threshold set by the `--failure-threshold` option as
inclusive and this has been reflected in the `--help` message text. But
the readme has never been updated.

fixes: #788
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--failure-threshold does not work as expected (exits 0) if set to level: 'error'
2 participants