From: Michael Orlitzky Date: Thu, 28 Apr 2011 02:05:34 +0000 (-0400) Subject: Added an hlint makefile target. X-Git-Tag: 0.0.1~361 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=dc30cf1f4ebee9f3d97e1e8fe27e2207140ea593;p=spline3.git Added an hlint makefile target. --- diff --git a/makefile b/makefile index 7bbd467..dc1c364 100644 --- a/makefile +++ b/makefile @@ -7,7 +7,7 @@ GHC_WARNINGS += -fwarn-type-defaults BIN := spline3 -.PHONY : test doc src_html +.PHONY : test doc src_html hlint $(BIN): src/*.hs ghc -O2 $(GHC_WARNINGS) --make -o bin/${BIN} src/*.hs @@ -47,3 +47,9 @@ doc: src_html --source-module="src/%{MODULE/.//}.html" \ --source-entity="src/%{MODULE/.//}.html#%{NAME}" \ src/*.hs src/Tests/*.hs + +hlint: + hlint --ignore="Use camelCase" \ + --ignore="Redundant bracket" \ + --color \ + src