set up custom hlint hints

This commit is contained in:
Simon Michael 2009-09-23 17:56:15 +00:00
parent 64d438215a
commit 7bd8800c74
2 changed files with 17 additions and 1 deletions

View File

@ -117,7 +117,7 @@ committest: hlinttest unittest doctest functest haddocktest warningstest quickca
releasetest: unittest doctest functest haddocktest warningstest fullcabaltest
hlinttest hlint:
hlint $(SOURCEFILES) --report=hlint.html
hlint --hint=hlint --report=hlint.html $(SOURCEFILES)
# run unit tests
unittest: unittest-builtin

16
hlint.hs Normal file
View 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