From c00471ca0d7a437ab25e0c425b88c48b1236801f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 1 Jun 2017 15:09:30 +0200 Subject: Makefile: added 'lint' target. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fef1bf577..55aa47fdd 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,9 @@ bench: reformat: for f in $(sourcefiles); do echo $$f; stylish-haskell -i $$f ; done +lint: + for f in $(sourcefiles); do echo $$f; hlint --verbose --refactor --refactor-options='-i -s' $$f; done + changes_github: pandoc --filter extract-changes.hs changelog -t markdown_github | sed -e 's/\\#/#/g' | pbcopy @@ -59,4 +62,4 @@ download_stats: clean: stack clean -.PHONY: deps quick full install clean test bench changes_github macospkg dist prof download_stats reformat +.PHONY: deps quick full install clean test bench changes_github macospkg dist prof download_stats reformat lint -- cgit v1.2.3