aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-06-01 15:09:30 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-06-01 15:09:30 +0200
commitc00471ca0d7a437ab25e0c425b88c48b1236801f (patch)
tree08b3f5a79fc51e3144d84c0e21b1d99f796b0d9a
parentb1a9b567aac2b725669dacbc0fe524d0724dec35 (diff)
downloadpandoc-c00471ca0d7a437ab25e0c425b88c48b1236801f.tar.gz
Makefile: added 'lint' target.
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
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