From d72df5d071bb3cab4e0cf5e52dfa2e357ea1bb6f Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Tue, 3 Mar 2015 15:37:25 +0100 Subject: [PATCH] make: lint over all files that are `ok' for PHP... Seeing PHP ignore text files makes it easier to lint over more files for a simple reason: maybe someone sneaked a PHP file into the repo and forgot the proper file extension, which is not uncommon for utilities in *bin/ -- makes it easier to catch those. --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index b996325d1..6c379795f 100644 --- a/Makefile +++ b/Makefile @@ -25,10 +25,11 @@ install: xargs -n1 printf "/usr/local/%s\n" lint: - find ${.CURDIR}/src -name "*.class" -print0 | xargs -0 -n1 php -l - find ${.CURDIR}/src -name "*.inc" -print0 | xargs -0 -n1 php -l - find ${.CURDIR}/src -name "*.php" -print0 | xargs -0 -n1 php -l - find ${.CURDIR}/src -name "rc*" -print0 | xargs -0 -n1 php -l + find ${.CURDIR}/src ! -name "*.xml" ! -name "*.eot" \ + ! -name "*.svg" ! -name "*.woff" ! -name "*.woff2" \ + ! -name "*.otf" ! -name "*.png" ! -name "*.js" \ + ! -name "*.scss" ! -name "*.py" -type f -print0 | \ + xargs -0 -n1 php -l sweep: find ${.CURDIR}/src ! -name "*.min.*" ! -name "*.svg" \