Skip to content

Commit d04b119

Browse files
committed
Properly add our checkers to flycheck-checkers instead of enforcing it.
1 parent a5243b6 commit d04b119

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

drupal/flycheck.el

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,6 @@ so no need to highlight it twice."
5050
drupal/phpcs-standard)
5151
;; Set the coding standard to "Drupal" (we checked that it is
5252
;; supported above.
53-
54-
(when drupal/flycheck-phpcs-js-and-css
55-
(if (and (apply 'derived-mode-p (append drupal-css-modes drupal-js-modes))
56-
(flycheck-may-use-checker 'css-js-phpcs)
57-
)
58-
(set (make-local-variable 'flycheck-checker) 'css-js-phpcs)
59-
)
60-
)
6153
(set 'flycheck-phpcs-standard drupal/phpcs-standard)
6254

6355
;; Flycheck will also highlight trailing whitespace as an
@@ -90,8 +82,8 @@ See URL `http://pear.php.net/package/PHP_CodeSniffer/'."
9082
:modes '(css-mode js-mode)
9183
:predicate '(lambda ()
9284
(apply 'derived-mode-p (append drupal-php-modes drupal-css-modes drupal-js-modes))))
85+
(add-to-list 'flycheck-checkers 'css-js-phpcs)
9386

9487

9588
(provide 'drupal/flycheck)
96-
9789
;;; drupal/flycheck.el ends here

0 commit comments

Comments
 (0)