Last active
August 29, 2015 14:26
-
-
Save scor/653fe0869b03ad8d6929 to your computer and use it in GitHub Desktop.
bash alias for code smoke test and PHP linting in a Drupal codebase
This file contains 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
alias code-check="find -E . -type f -regex '^.*\.(engine|inc|install|engine|module|php|profile|test|theme|txt|info|rule|view)' | xargs -Ifile bash -c \"php -l file ; (true)\" | grep -v 'No syntax' | |
find . -type f | xargs -Ifile grep -H '>>>>>>' file| grep -v Binary | grep -v .git/rr-cache" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment