Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Linting

From MoodleDocs
Revision as of 15:07, 28 November 2016 by Dan Poltawski (talk | contribs) (Created page with "In Moodle development code linters are used to help ensure consistent coding conventions and help prevent common errors in code. == PHP (PHP_CodeSniffer) ==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

In Moodle development code linters are used to help ensure consistent coding conventions and help prevent common errors in code.

PHP (PHP_CodeSniffer)

PHP code in Moodle is linted by PHP_CodeSniffer using the rules in the Code-checker plugin.

Javascript (ESLint)

Since Moodle 3.2, Javascript code has been linted by eslint.

CSS/SCSS/Less (stylelint)

Since Moodle 3.2, CSS code has been linted by stylelint.