| 1 |
#!/bin/sh |
| 2 |
# Lint both PHP and JSON files |
| 3 |
|
| 4 |
set -e |
| 5 |
|
| 6 |
export FILES="/var/lib/mediawiki/extensions/CodeMirror" |
| 7 |
|
| 8 |
find $FILES -not -type d -name '*.php' | xargs -n1 -exec php -l |
| 9 |
find $FILES -not -type d -name '*.json' | xargs -n1 -exec jsonlint-php |