| 1 | #!/bin/sh |
| 2 | # Lint both PHP and JSON files |
| 3 | |
| 4 | set -e |
| 5 | |
| 6 | export FILES="/usr/share/mediawiki/skins/GreyStuff" |
| 7 | |
| 8 | # Ignore LocalSettings.php since it is just a symlink |
| 9 | # that does not exist yet. |
| 10 | find $FILES -not -type d -name '*.php' -not -name 'LocalSettings.php' | xargs -n1 -exec php -l |
| 11 | find $FILES -not -type d -name '*.json' | xargs -n1 -exec jsonlint-php |