Skip to content

PHP_CodeSniffer

This job will validate the module's code against Drupal coding standards.

It uses PHP_CodeSniffer library and configures the Drupal coding standards.

If the module does not have a default phpcs.xml or phpcs.xml.dist, it will use this one. If it has one, then it will use it.

You can also use the variable _PHPCS_EXTRA in the variables section of the .gitlab-ci.yml file to pass additional arguments to the call.