Created
April 28, 2011 08:52
-
-
Save tony4d/946031 to your computer and use it in GitHub Desktop.
PHP lint all files added or modified locally
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
for i in `git status -s | sed -e 's/^.* //'`; do php -l $i; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very nice, thank you! The code as is will try to lint files removed as well, so I've forked and added a check. Have a look:
https://gist.github.com/dotancohen/701bec7285ffcb9f3c592df6146913f2