Skip to content

Commit e803c00

Browse files
committed
Only use our phpcs special checker on non PHP-files.
1 parent 936ca4a commit e803c00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drupal/flycheck.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ See URL `http://pear.php.net/package/PHP_CodeSniffer/'."
6767
;; We'd prefer to just check drupal-mode, but flycheck global mode
6868
;; finds the checker before we get a chance to set drupal-mode.
6969
:predicate (lambda ()
70-
(apply 'derived-mode-p (append drupal-php-modes drupal-css-modes drupal-js-modes drupal-info-modes))))
70+
(apply 'derived-mode-p (append drupal-css-modes drupal-js-modes drupal-info-modes))))
7171

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

0 commit comments

Comments
 (0)