Skip to content

Commit e47d769

Browse files
committed
Fix drupal-phpcs checker predicate
Apparently, checking for drupal-mode works now.
1 parent b4a6609 commit e47d769

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drupal/flycheck.el

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,8 @@ See URL `http://pear.php.net/package/PHP_CodeSniffer/'."
6464
(warning line-start
6565
(file-name) ":" line ":" column ": warning - " (message)
6666
line-end))
67-
;; We'd prefer to just check drupal-mode, but flycheck global mode
68-
;; finds the checker before we get a chance to set drupal-mode.
6967
:predicate (lambda ()
70-
(apply 'derived-mode-p (append drupal-css-modes drupal-js-modes drupal-info-modes))))
68+
(and drupal-mode drupal/phpcs-standard)))
7169

7270
;; Append our custom checker.
7371
(add-to-list 'flycheck-checkers 'drupal-phpcs t)

0 commit comments

Comments
 (0)