mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-16 10:03:08 -07:00
Refactor to not generate Parameters twice
This commit is contained in:
parent
3ce310e939
commit
f440912279
4 changed files with 25 additions and 27 deletions
|
@ -35,13 +35,13 @@ analyzeScript :: AnalysisSpec -> AnalysisResult
|
|||
analyzeScript spec = newAnalysisResult {
|
||||
arComments =
|
||||
filterByAnnotation spec params . nub $
|
||||
runAnalytics spec
|
||||
++ runChecker params (checkers spec params)
|
||||
runChecker params (checkers spec params)
|
||||
}
|
||||
where
|
||||
params = makeParameters spec
|
||||
|
||||
checkers spec params = mconcat $ map ($ params) [
|
||||
ShellCheck.Analytics.checker spec,
|
||||
ShellCheck.Checks.Commands.checker spec,
|
||||
ShellCheck.Checks.ControlFlow.checker spec,
|
||||
ShellCheck.Checks.Custom.checker,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue