mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
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:
parent
f2ce49486a
commit
d72df5d071
9
Makefile
9
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" \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user