Skip to content

Instantly share code, notes, and snippets.

@dotancohen
Forked from tony4d/php-lint-git.sh
Last active July 3, 2018 12:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dotancohen/701bec7285ffcb9f3c592df6146913f2 to your computer and use it in GitHub Desktop.
Save dotancohen/701bec7285ffcb9f3c592df6146913f2 to your computer and use it in GitHub Desktop.
PHP lint all files added or modified locally
for i in $(git status -s | grep '^\s*A\|^\s*M' | 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