Module

Whine.Runner

Package
purescript-whine-core
Repository
collegevine/purescript-whine

#runWhineAndPrintResultsAndExit Source

runWhineAndPrintResultsAndExit :: RuleFactories -> Effect Unit

The main entry point into the linter. It takes some basic parameters and runs the whole thing: reads the config, parses it, instantiates the rules, globs the input files, parses them, and runs the rules through every file.

#runWhine Source

runWhine :: forall m. MonadEffect m => { configFile :: FilePath, env :: Env, factories :: RuleFactories, globs :: Maybe (NonEmptyArray NonEmptyString) } -> m (Violations (WithRule + WithMuted + WithFile + ()))

The main entry point into the linter. It takes some basic parameters and runs the whole thing: reads the config, parses it, instantiates the rules, globs the input files, parses them, and runs the rules through every file.