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:15, 28 November 2016 by Dan Poltawski (talk | contribs)

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

Linters

PHP (PHP_CodeSniffer)

PHP code in Moodle is linted by PHP_CodeSniffer.

Rules

The rules defined as part of the Code-checker plugin.

Javascript (ESLint)

Javascript code is linted with eslint.

Rules

ESlint rules are defined within Moodle

Ignores

CSS/SCSS/Less (stylelint)

CSS code has been linted by stylelint.

Rules

Ignores

Editor integrations

Atom

Visual Studio Code

PHPStorm