From 901b8896afb2dc37357769063779935a531a1bca Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 2 Oct 2015 11:19:11 +1300 Subject: Add linting targets --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c2d4b5fd..8d0917bf 100644 --- a/Makefile +++ b/Makefile @@ -260,3 +260,17 @@ test-urxvt: done @printf 'All Perl scripts in urxvt/ext parsed successfully.\n' +lint : lint-sh lint-bash lint-bin lint-urxvt + +lint-sh : + find sh -type f -print -exec shellcheck -- {} \; + +lint-bash : + find bash -type f -print -exec shellcheck -- {} \; + +lint-bin : + find bin -type f -print -exec shellcheck -- {} \; + +lint-urxvt: + find urxvt/ext -type f -print -exec perlcritic --brutal -- {} \; + -- cgit v1.2.3