mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-16 10:03:08 -07:00
Separated formatters into multiple files.
This commit is contained in:
parent
72eeafe002
commit
67cfcfd206
11 changed files with 419 additions and 234 deletions
|
@ -31,16 +31,19 @@ data SystemInterface m = SystemInterface {
|
|||
|
||||
-- ShellCheck input and output
|
||||
data CheckSpec = CheckSpec {
|
||||
csFilename :: String,
|
||||
csScript :: String,
|
||||
csExcludedWarnings :: [Integer],
|
||||
csShellTypeOverride :: Maybe Shell
|
||||
} deriving (Show, Eq)
|
||||
|
||||
data CheckResult = CheckResult {
|
||||
crFilename :: String,
|
||||
crComments :: [PositionedComment]
|
||||
} deriving (Show, Eq)
|
||||
|
||||
emptyCheckSpec = CheckSpec {
|
||||
csFilename = "",
|
||||
csScript = "",
|
||||
csExcludedWarnings = [],
|
||||
csShellTypeOverride = Nothing
|
||||
|
@ -48,6 +51,7 @@ emptyCheckSpec = CheckSpec {
|
|||
|
||||
-- Parser input and output
|
||||
data ParseSpec = ParseSpec {
|
||||
psFilename :: String,
|
||||
psScript :: String
|
||||
} deriving (Show, Eq)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue