mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-07 21:41:34 -07:00
SQUASH: --severity specifies *minimum* severity to be handled
Signed-off-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
parent
b16da4b242
commit
3fe11927bb
4 changed files with 8 additions and 8 deletions
|
@ -68,7 +68,7 @@ checkScript sys spec = do
|
|||
(parseMessages ++ map translator analysisMessages)
|
||||
|
||||
shouldInclude (PositionedComment _ _ (Comment severity code _)) =
|
||||
severity <= csMaxSeverity spec &&
|
||||
severity <= csMinSeverity spec &&
|
||||
code `notElem` csExcludedWarnings spec
|
||||
|
||||
sortMessages = sortBy (comparing order)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue