mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 19:48:11 +08:00
Control Flow Graph / Data Flow Analysis support
This commit is contained in:
@@ -25,6 +25,7 @@ import ShellCheck.Interface
|
||||
import Data.List
|
||||
import Data.Monoid
|
||||
import qualified ShellCheck.Checks.Commands
|
||||
import qualified ShellCheck.Checks.ControlFlow
|
||||
import qualified ShellCheck.Checks.Custom
|
||||
import qualified ShellCheck.Checks.ShellSupport
|
||||
|
||||
@@ -42,11 +43,13 @@ analyzeScript spec = newAnalysisResult {
|
||||
|
||||
checkers spec params = mconcat $ map ($ params) [
|
||||
ShellCheck.Checks.Commands.checker spec,
|
||||
ShellCheck.Checks.ControlFlow.checker spec,
|
||||
ShellCheck.Checks.Custom.checker,
|
||||
ShellCheck.Checks.ShellSupport.checker
|
||||
]
|
||||
|
||||
optionalChecks = mconcat $ [
|
||||
ShellCheck.Analytics.optionalChecks,
|
||||
ShellCheck.Checks.Commands.optionalChecks
|
||||
ShellCheck.Checks.Commands.optionalChecks,
|
||||
ShellCheck.Checks.ControlFlow.optionalChecks
|
||||
]
|
||||
|
Reference in New Issue
Block a user