Skip to content

phpcs with several available Drupal* standards #49

@kaaresl

Description

@kaaresl

Problem

drupal/phpcs-standard picks the first available standard matching Drupal.*, so having DrupalPractice installed in tandem with Drupal (coder.module) causes the first to be selected and you loose all rules provided by Drupal.

Suggested solution

One of the following:

  • Provide all standards using phpcs --standard=Drupal,DrupalPractice (Yes, it's possible to provide several).
  • Extract the available standards as a configuration letting the user select which to use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions