File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments