I have sent a PHP fatal error in the scap repository (fix: https://gerrit.wikimedia.org/r/#/c/120692 )
EBernhardson wrote:
other repositories run the php linter, could this one too? Since not everything has the .php extension it would probably have to use the magic number(ala /usr/bin/file) to decide or some such.
I guess find / file / xargs php -l would do the job indeed. If you can come up with the shell commands to have it happen I will be more than happy.
We currently use the phplint macro which is:
bin/git-changed-in-head php php5 inc phtml module install | xargs -n1 -t php -l
git-changed-in-head comes from integration/jenkins.git which is intended to provides files having changed in HEAD (obviously :D).
Version: wmf-deployment
Severity: normal