Make SC2230 optional

This commit is contained in:
Vidar Holen 2019-12-07 16:06:34 -08:00
parent 0a4580e234
commit 0f15fa49ba
4 changed files with 37 additions and 10 deletions

View file

@ -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
]