mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-15 01:23:07 -07:00
Include shebang in AST traversal (fixes #1858)
This commit is contained in:
parent
acee69676b
commit
7963eeab9d
2 changed files with 12 additions and 1 deletions
|
@ -288,6 +288,13 @@ prop_deducesTypeFromExtension2 = result == [2079]
|
|||
csScript = "(( 3.14 ))"
|
||||
}
|
||||
|
||||
prop_canDisableShebangWarning = null $ result
|
||||
where
|
||||
result = checkWithSpec [] emptyCheckSpec {
|
||||
csFilename = "file.sh",
|
||||
csScript = "#shellcheck disable=SC2148\nfoo"
|
||||
}
|
||||
|
||||
prop_shExtensionDoesntMatter = result == [2148]
|
||||
where
|
||||
result = checkWithSpec [] emptyCheckSpec {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue