Separate out command specific checks.

The checks use a better interface and give
an overall speed boost of 10%.
This commit is contained in:
Vidar Holen
2016-04-10 17:01:40 -07:00
parent 9911470d67
commit db0c8c2dc9
7 changed files with 1219 additions and 1019 deletions

View File

@@ -5,11 +5,13 @@ import System.Exit
import qualified ShellCheck.Checker
import qualified ShellCheck.Analytics
import qualified ShellCheck.Parser
import qualified ShellCheck.Checks.Commands
main = do
putStrLn "Running ShellCheck tests..."
results <- sequence [
ShellCheck.Checker.runTests,
ShellCheck.Checks.Commands.runTests,
ShellCheck.Analytics.runTests,
ShellCheck.Parser.runTests
]