1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00
semantic/test/Lint.hs
2019-01-14 11:06:17 -05:00

10 lines
319 B
Haskell

module Main (main) where
import Language.Haskell.HLint (Severity(..), hlint, suggestionSeverity)
import System.Exit (exitFailure, exitSuccess)
main :: IO ()
main = do
hints <- hlint [ "src", "services/indexer/src" ]
if null (filter ((>= Warning) . suggestionSeverity) hints) then exitSuccess else exitFailure