Add hlint test suite

This commit is contained in:
Ryan Trinkle 2016-07-17 19:03:13 -04:00
parent 80904ba8dd
commit 0a8cfa90a1
2 changed files with 18 additions and 0 deletions

View File

@ -105,6 +105,12 @@ library
other-extensions: TemplateHaskell
ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2 -ferror-spans
test-suite hlint
build-depends: base, hlint == 1.9.*
hs-source-dirs: test
main-is: hlint.hs
type: exitcode-stdio-1.0
source-repository head
type: git
location: https://github.com/reflex-frp/reflex-dom

12
test/hlint.hs Normal file
View File

@ -0,0 +1,12 @@
import Language.Haskell.HLint3 (hlint)
import System.Exit (exitFailure, exitSuccess)
main :: IO ()
main = do
ideas <- hlint
[ "."
, "--ignore=Redundant do"
, "--ignore=Use camelCase"
, "--ignore=Redundant $"
]
if null ideas then exitSuccess else exitFailure