Created
January 28, 2015 11:58
-
-
Save oliverlundquist/66e71f3bafc102240994 to your computer and use it in GitHub Desktop.
phplint
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
gulp.task('phplint', function () { | |
exec('find . -type f -name "*.php" | xargs -n 1 php -d display_errors=1 -l | grep -v "No syntax errors"', function(error, stdout) { | |
console.log(stdout); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment