Last active
November 20, 2017 10:58
-
-
Save fbrinker/eb8ecf28950732539b8f4bf33fa208ce to your computer and use it in GitHub Desktop.
Lint all php files and invert the grep return code so a CI build can fail on found errors
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
#!/usr/bin/env bash | |
find . -type f -name '*.php' -exec php -l {} \; | (! grep -v "No syntax errors detected" ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment