mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-09 11:51:39 +08:00
Allow disable=all
to disable all warnings (fixes #2323)
This commit is contained in:
@@ -306,6 +306,13 @@ prop_canDisableShebangWarning = null $ result
|
||||
csScript = "#shellcheck disable=SC2148\nfoo"
|
||||
}
|
||||
|
||||
prop_canDisableAllWarnings = result == [2086]
|
||||
where
|
||||
result = checkWithSpec [] emptyCheckSpec {
|
||||
csFilename = "file.sh",
|
||||
csScript = "#!/bin/sh\necho $1\n#shellcheck disable=all\necho `echo $1`"
|
||||
}
|
||||
|
||||
prop_canDisableParseErrors = null $ result
|
||||
where
|
||||
result = checkWithSpec [] emptyCheckSpec {
|
||||
|
Reference in New Issue
Block a user