Manual:Linting


 * This page is about linting of MediaWiki code. For on-wiki linting, see Extension:Linter.

Linting, in the context of MediaWiki software development, refers to automatically analyzing source code to flag programming errors, bugs, and stylistic errors. Linting can be set up both in your local development environment and as part of Wikimedia's continuous integration system.

PHP
Linting of our PHP code is mainly handled by PHP CodeSniffer. Other options include PHP-Parallel-Lint and PHP's built in linter.

Javascript
See Manual:Coding conventions/JavaScript.