arnested / drupal-mode

Advanced Emacs minor mode for Drupal development
https://melpa.org/#/drupal-mode
GNU General Public License v3.0
32 stars 14 forks source link

phpcs with several available Drupal* standards #49

Open kaaresl opened 10 years ago

kaaresl commented 10 years ago

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:

kaaresl commented 10 years ago

I have got to learn to read the code better. Or at least look through the available configuration settings. Just found M-x customize-variable drupal/phpcs-standard.

arnested commented 10 years ago

:smile:

I didn't know you could provide several standards. But now that I learned that I started rewriting how standards are handled so that it can be turned into a list of installed standards to choose from.

So I'll reopen for that purpose.