From 2e19caa4844be2fd4cbb8502246f54c33047a177 Mon Sep 17 00:00:00 2001 From: kostajh Date: Tue, 19 Apr 2016 09:50:49 -0400 Subject: [PATCH] Hardcode the Drupal coding standard name If I do this, Drupal mode, flycheck and phpcs work happily together. If I don't, I get errors that `Drupal and DrupalPractice coding standard not found`, and if I manually remove the `DrupalPractice` code sniff style, I get `Drupal and PSR1 coding standard not found`. --- drupal/phpcs.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drupal/phpcs.el b/drupal/phpcs.el index 723f9fa..f949303 100644 --- a/drupal/phpcs.el +++ b/drupal/phpcs.el @@ -34,8 +34,7 @@ ;; command. Check for both. (call-process (or (and (boundp 'flymake-phpcs-command) (executable-find flymake-phpcs-command)) (executable-find "phpcs")) nil (list t nil) nil "-i"))))) (when (string-match - "\\(Drupal[^, -]*\\)" + "Drupal" standards) (match-string-no-properties 1 standards)))) "Name of Drupal coding standard rules for PHP CodeSniffer.