on develop help sign in
Add hlint test suite
0a8cfa9Ryan Trinkle
reflex-dom.cabal+6
@@ -105,6 +105,12 @@ library
105 other-extensions: TemplateHaskell
105 other-extensions: TemplateHaskell
106 ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2 -ferror-spans
106 ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2 -ferror-spans
107
107
108+test-suite hlint
109+ build-depends: base, hlint == 1.9.*
110+ hs-source-dirs: test
111+ main-is: hlint.hs
112+ type: exitcode-stdio-1.0
113+
108source-repository head
114source-repository head
109 type: git
115 type: git
110 location: https://github.com/reflex-frp/reflex-dom
116 location: https://github.com/reflex-frp/reflex-dom
test/hlint.hsnew file+12
@@ -0,0 +1,12 @@
1+import Language.Haskell.HLint3 (hlint)
2+import System.Exit (exitFailure, exitSuccess)
3+
4+main :: IO ()
5+main = do
6+ ideas <- hlint
7+ [ "."
8+ , "--ignore=Redundant do"
9+ , "--ignore=Use camelCase"
10+ , "--ignore=Redundant $"
11+ ]
12+ if null ideas then exitSuccess else exitFailure