Allow custom arguments to be passed to phpcs

Migrated issue

Reported by: damienmckenna

Related to !185 (merged)

Problem/Motivation

It is a common practice with the hooks system for one module to implement hooks on behalf of another module, especially a core module. phpcs returns an error if it finds this. It is possible to ignore this error by disabling the Drupal.NamingConventions.ValidFunctionName.InvalidPrefix test, but the gitlab-ci.yml file doesn't currently provide a way of passing options to phpcs.

Proposed resolution

Provide a way of passing options to phpcs.

Remaining tasks

Work out how pass arguments to phpcs in the scripts.
Provide a way of passing arguments to phpcs.
Document the new option.

User interface changes

A new option would be available for passing arguments to phpcs.

API changes

A new option would be available for passing arguments to phpcs.

Data model changes

n/a

Assignee Loading
Time tracking Loading