From dc30cf1f4ebee9f3d97e1e8fe27e2207140ea593 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Wed, 27 Apr 2011 22:05:34 -0400 Subject: [PATCH] Added an hlint makefile target. --- makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.43.2