mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-03-12 12:35:25 -07:00
39 lines
1.2 KiB
Haskell
39 lines
1.2 KiB
Haskell
module Main where
|
|
|
|
import Control.Monad
|
|
import System.Exit
|
|
import qualified ShellCheck.Analytics
|
|
import qualified ShellCheck.AnalyzerLib
|
|
import qualified ShellCheck.ASTLib
|
|
import qualified ShellCheck.CFG
|
|
import qualified ShellCheck.CFGAnalysis
|
|
import qualified ShellCheck.Checker
|
|
import qualified ShellCheck.Checks.Commands
|
|
import qualified ShellCheck.Checks.ControlFlow
|
|
import qualified ShellCheck.Checks.Custom
|
|
import qualified ShellCheck.Checks.ShellSupport
|
|
import qualified ShellCheck.Fixer
|
|
import qualified ShellCheck.Formatter.Diff
|
|
import qualified ShellCheck.Parser
|
|
|
|
main = do
|
|
putStrLn "Running ShellCheck tests..."
|
|
results <- sequence [
|
|
ShellCheck.Analytics.runTests
|
|
,ShellCheck.AnalyzerLib.runTests
|
|
,ShellCheck.ASTLib.runTests
|
|
,ShellCheck.CFG.runTests
|
|
,ShellCheck.CFGAnalysis.runTests
|
|
,ShellCheck.Checker.runTests
|
|
,ShellCheck.Checks.Commands.runTests
|
|
,ShellCheck.Checks.ControlFlow.runTests
|
|
,ShellCheck.Checks.Custom.runTests
|
|
,ShellCheck.Checks.ShellSupport.runTests
|
|
,ShellCheck.Fixer.runTests
|
|
,ShellCheck.Formatter.Diff.runTests
|
|
,ShellCheck.Parser.runTests
|
|
]
|
|
if and results
|
|
then exitSuccess
|
|
else exitFailure
|