mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-08 14:01:11 -07:00
Make SC2230 optional
This commit is contained in:
parent
0a4580e234
commit
0f15fa49ba
4 changed files with 37 additions and 10 deletions
|
@ -35,17 +35,18 @@ analyzeScript spec = newAnalysisResult {
|
|||
arComments =
|
||||
filterByAnnotation spec params . nub $
|
||||
runAnalytics spec
|
||||
++ runChecker params (checkers params)
|
||||
++ runChecker params (checkers spec params)
|
||||
}
|
||||
where
|
||||
params = makeParameters spec
|
||||
|
||||
checkers params = mconcat $ map ($ params) [
|
||||
ShellCheck.Checks.Commands.checker,
|
||||
checkers spec params = mconcat $ map ($ params) [
|
||||
ShellCheck.Checks.Commands.checker spec,
|
||||
ShellCheck.Checks.Custom.checker,
|
||||
ShellCheck.Checks.ShellSupport.checker
|
||||
]
|
||||
|
||||
optionalChecks = mconcat $ [
|
||||
ShellCheck.Analytics.optionalChecks
|
||||
ShellCheck.Analytics.optionalChecks,
|
||||
ShellCheck.Checks.Commands.optionalChecks
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue