From bd5c7669d1834d69a88056fe081a035d8a4c8693 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Mon, 8 Aug 2016 08:30:22 -0700 Subject: [PATCH] tools: custom hlint config for whole project --- hledger/hlint.hs => hlint.hs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) rename hledger/hlint.hs => hlint.hs (76%) diff --git a/hledger/hlint.hs b/hlint.hs similarity index 76% rename from hledger/hlint.hs rename to hlint.hs index f9148a659..d49812310 100644 --- a/hledger/hlint.hs +++ b/hlint.hs @@ -1,9 +1,10 @@ {- hlint configuration for hledger -manual: http://community.haskell.org/~ndm/darcs/hlint/hlint.htm +https://github.com/ndmitchell/hlint#readme +https://github.com/ndmitchell/hlint/issues/256 -examples: +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. @@ -13,5 +14,9 @@ warn "Use concatMap" = "" - the hint to use concatMap is a warni -} -import HLint.Default +{-# PackageImports #-} +import "hlint" HLint.Builtin.All +-- import "hlint" HLint.Default + ignore "Use camelCase" = "" +