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.
This commit is contained in:
Franco Fichtner 2015-03-03 15:37:25 +01:00
parent f2ce49486a
commit d72df5d071

View File

@ -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" \