mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-09 11:51:39 +08:00
Let annotations take effect earlier (fixes #2534)
This commit is contained in:
@@ -496,6 +496,17 @@ prop_fileCannotEnableExternalSources2 = result == [1144]
|
||||
csCheckSourced = True
|
||||
}
|
||||
|
||||
prop_rcCanSuppressEarlyProblems1 = null result
|
||||
where
|
||||
result = checkWithRc "disable=1071" emptyCheckSpec {
|
||||
csScript = "#!/bin/zsh\necho $1"
|
||||
}
|
||||
|
||||
prop_rcCanSuppressEarlyProblems2 = null result
|
||||
where
|
||||
result = checkWithRc "disable=1104" emptyCheckSpec {
|
||||
csScript = "!/bin/bash\necho 'hello world'"
|
||||
}
|
||||
|
||||
return []
|
||||
runTests = $quickCheckAll
|
||||
|
Reference in New Issue
Block a user