mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-12 16:13:19 -07:00
Allow directive/-s to override shebang blacklist (fixes #974)
This commit is contained in:
parent
b8ee7436e5
commit
5005dc0fa1
4 changed files with 54 additions and 22 deletions
|
@ -52,11 +52,20 @@ emptyCheckSpec = CheckSpec {
|
|||
csShellTypeOverride = Nothing
|
||||
}
|
||||
|
||||
newParseSpec :: ParseSpec
|
||||
newParseSpec = ParseSpec {
|
||||
psFilename = "",
|
||||
psScript = "",
|
||||
psCheckSourced = False,
|
||||
psShellTypeOverride = Nothing
|
||||
}
|
||||
|
||||
-- Parser input and output
|
||||
data ParseSpec = ParseSpec {
|
||||
psFilename :: String,
|
||||
psScript :: String,
|
||||
psCheckSourced :: Bool
|
||||
psCheckSourced :: Bool,
|
||||
psShellTypeOverride :: Maybe Shell
|
||||
} deriving (Show, Eq)
|
||||
|
||||
data ParseResult = ParseResult {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue