Skip to content

Commit 3878316

Browse files
committed
Check for drupal/flycheck-phpcs-js-and-css in predicate, now we don't enforce it.
1 parent f57430a commit 3878316

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
@@ -80,7 +80,7 @@ See URL `http://pear.php.net/package/PHP_CodeSniffer/'."
8080
("\\(?1:.*\\):\\(?2:[0-9]+\\):\\(?3:[0-9]+\\): warning - \\(?4:.*\\)" warning))
8181
:modes '(css-mode js-mode)
8282
:predicate '(lambda ()
83-
(apply 'derived-mode-p (append drupal-php-modes drupal-css-modes drupal-js-modes))))
83+
(and drupal/flycheck-phpcs-js-and-css (apply 'derived-mode-p (append drupal-php-modes drupal-css-modes drupal-js-modes)))))
8484
(add-to-list 'flycheck-checkers 'css-js-phpcs)
8585

8686

0 commit comments

Comments
 (0)