Created
June 29, 2021 10:18
-
-
Save sparkcodeuk/c96cf28299779588711e9fac5539076d to your computer and use it in GitHub Desktop.
Recursively PHP lint PHP files (not quitting out if errors are found)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -type f -name '*.php' -print0|xargs -0 -n1 -I{} bash -c "php -l {} || true" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment