mirror of
https://github.com/ilyakooo0/reflex-dom.git
synced 2024-09-11 06:35:30 +03:00
Add hlint test suite
This commit is contained in:
parent
80904ba8dd
commit
0a8cfa90a1
@ -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
12
test/hlint.hs
Normal 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
|
Loading…
Reference in New Issue
Block a user