set up custom hlint hints
This commit is contained in:
parent
64d438215a
commit
7bd8800c74
2
Makefile
2
Makefile
@ -117,7 +117,7 @@ committest: hlinttest unittest doctest functest haddocktest warningstest quickca
|
|||||||
releasetest: unittest doctest functest haddocktest warningstest fullcabaltest
|
releasetest: unittest doctest functest haddocktest warningstest fullcabaltest
|
||||||
|
|
||||||
hlinttest hlint:
|
hlinttest hlint:
|
||||||
hlint $(SOURCEFILES) --report=hlint.html
|
hlint --hint=hlint --report=hlint.html $(SOURCEFILES)
|
||||||
|
|
||||||
# run unit tests
|
# run unit tests
|
||||||
unittest: unittest-builtin
|
unittest: unittest-builtin
|
||||||
|
|||||||
16
hlint.hs
Normal file
16
hlint.hs
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{-
|
||||||
|
hlint configuration for hledger
|
||||||
|
|
||||||
|
manual: http://community.haskell.org/~ndm/darcs/hlint/hlint.htm
|
||||||
|
|
||||||
|
examples:
|
||||||
|
ignore "Eta reduce" = "" - suppress all eta reduction suggestions.
|
||||||
|
ignore "Eta reduce" = Data.List Prelude - suppress eta reduction hints in the Prelude and Data.List modules.
|
||||||
|
ignore = Data.List.map - don't give any hints in the function Data.List.map.
|
||||||
|
error = Data.List.map - any hint in the function is an error.
|
||||||
|
error "Use concatMap" = "" - the hint to use concatMap is an error.
|
||||||
|
warn "Use concatMap" = "" - the hint to use concatMap is a warning.
|
||||||
|
|
||||||
|
-}
|
||||||
|
|
||||||
|
import HLint.Default
|
||||||
Loading…
Reference in New Issue
Block a user