emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/drupal-mode e47d7697e6 264/308: Fix drupal-phpcs checker p


From: ELPA Syncer
Subject: [nongnu] elpa/drupal-mode e47d7697e6 264/308: Fix drupal-phpcs checker predicate
Date: Tue, 25 Jan 2022 10:59:53 -0500 (EST)

branch: elpa/drupal-mode
commit e47d7697e691d5fdbf184e03df9a0304a0db6e01
Author: Thomas Fini Hansen <xen@xen.dk>
Commit: Thomas Fini Hansen <xen@xen.dk>

    Fix drupal-phpcs checker predicate
    
    Apparently, checking for drupal-mode works now.
---
 drupal/flycheck.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drupal/flycheck.el b/drupal/flycheck.el
index a56a8984c2..7b3ba4a65e 100644
--- a/drupal/flycheck.el
+++ b/drupal/flycheck.el
@@ -64,10 +64,8 @@ See URL `http://pear.php.net/package/PHP_CodeSniffer/'."
    (warning line-start
             (file-name) ":" line ":" column ": warning - " (message)
             line-end))
-  ;; We'd prefer to just check drupal-mode, but flycheck global mode
-  ;; finds the checker before we get a chance to set drupal-mode.
   :predicate (lambda ()
-               (apply 'derived-mode-p (append drupal-css-modes drupal-js-modes 
drupal-info-modes))))
+               (and drupal-mode drupal/phpcs-standard)))
 
 ;; Append our custom checker.
 (add-to-list 'flycheck-checkers 'drupal-phpcs t)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]