|This feature was removed completely in version 1.31.0.|
|MediaWiki file: checkSyntax.php|
|Source code:||master • 1.35.2 • 1.31.14|
This command-line maintenance script checks source files for syntax errors and common coding mistakes, such as byte order marks, pointless PHP closing tags (
?>) at the end of file and whitespace before the opening tag (
If called without arguments,
checkSyntax.php scans through main code directories (
/skins/) and, if it exists, checks the configuration file LocalSettings.php. For example:
- also scan the
--path <path to check>
- check the given file or directory.
- check only files or directories listed in the given text file.
- check only files modified in the current working copy (requires that the script is run from a Git clone and that the Git command-line client is present. Use this option to quickly check your changes before committing them to your repository.