branch: elpa/drupal-mode
commit e47d7697e691d5fdbf184e03df9a0304a0db6e01
Author: Thomas Fini Hansen <[email protected]>
Commit: Thomas Fini Hansen <[email protected]>
Fix drupal-phpcs checker predicate
Apparently, checking for drupal-mode works now.
---
drupal/flycheck.el | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drupal/flycheck.el b/drupal/flycheck.el
index a56a8984c2..7b3ba4a65e 100644
--- a/drupal/flycheck.el
+++ b/drupal/flycheck.el
@@ -64,10 +64,8 @@ See URL `http://pear.php.net/package/PHP_CodeSniffer/'."
(warning line-start
(file-name) ":" line ":" column ": warning - " (message)
line-end))
- ;; We'd prefer to just check drupal-mode, but flycheck global mode
- ;; finds the checker before we get a chance to set drupal-mode.
:predicate (lambda ()
- (apply 'derived-mode-p (append drupal-css-modes drupal-js-modes
drupal-info-modes))))
+ (and drupal-mode drupal/phpcs-standard)))
;; Append our custom checker.
(add-to-list 'flycheck-checkers 'drupal-phpcs t)