branch: elpa/drupal-mode
commit e803c0037946df29f99ca9285aa0fa2c8ef0357e
Author: Thomas Fini Hansen <[email protected]>
Commit: Thomas Fini Hansen <[email protected]>
Only use our phpcs special checker on non PHP-files.
---
drupal/flycheck.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drupal/flycheck.el b/drupal/flycheck.el
index 36ef7ca537..eadca3a124 100644
--- a/drupal/flycheck.el
+++ b/drupal/flycheck.el
@@ -67,7 +67,7 @@ See URL `http://pear.php.net/package/PHP_CodeSniffer/'."
;; 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-php-modes
drupal-css-modes drupal-js-modes drupal-info-modes))))
+ (apply 'derived-mode-p (append drupal-css-modes drupal-js-modes
drupal-info-modes))))
;; Append our custom checker.
(add-to-list 'flycheck-checkers 'drupal-phpcs t)