mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-09 12:08:38 +08:00
SQUASH: --severity specifies *minimum* severity to be handled
Signed-off-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
committed by
Vidar Holen
parent
b16da4b242
commit
3fe11927bb
@@ -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)
|
||||
|
Reference in New Issue
Block a user