]> gitweb.michael.orlitzky.com - spline3.git/commitdiff
Added an hlint makefile target.
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 28 Apr 2011 02:05:34 +0000 (22:05 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 28 Apr 2011 02:05:34 +0000 (22:05 -0400)
makefile

index 7bbd4672c3c2f31012b099f5fdb2d76f279ea8d3..dc1c3642e1ae0a40d8e28fdf4dc1ee13433fef7a 100644 (file)
--- 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