[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/drupal-mode 274015c27a 147/308: Merge pull request #37 fro
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/drupal-mode 274015c27a 147/308: Merge pull request #37 from xendk/develop |
Date: |
Tue, 25 Jan 2022 10:59:40 -0500 (EST) |
branch: elpa/drupal-mode
commit 274015c27adf8d1f426aa1aeac59963dfc8d32fc
Merge: 8d57a2a3d6 889fc24427
Author: Arne Jørgensen <arne@arnested.dk>
Commit: Arne Jørgensen <arne@arnested.dk>
Merge pull request #37 from xendk/develop
Fixups to flycheck support.
---
drupal/flycheck.el | 18 ++++--------------
1 file changed, 4 insertions(+), 14 deletions(-)
diff --git a/drupal/flycheck.el b/drupal/flycheck.el
index 9099ba2177..0cc0d214e7 100644
--- a/drupal/flycheck.el
+++ b/drupal/flycheck.el
@@ -46,19 +46,10 @@ so no need to highlight it twice."
(defun drupal/flycheck-hook ()
"Enable drupal-mode support for flycheck."
(when (and (apply 'derived-mode-p (append drupal-php-modes drupal-css-modes
drupal-js-modes))
- (executable-find "phpcs")
drupal/phpcs-standard)
;; Set the coding standard to "Drupal" (we checked that it is
;; supported above.
- (set (make-local-variable 'flycheck-phpcs-standard) drupal/phpcs-standard)
-
- (when drupal/flycheck-phpcs-js-and-css
- (if (and (apply 'derived-mode-p (append drupal-css-modes
drupal-js-modes))
- (flycheck-may-use-checker 'css-js-phpcs)
- )
- (set (make-local-variable 'flycheck-checker) 'css-js-phpcs)
- )
- )
+ (setq flycheck-phpcs-standard drupal/phpcs-standard)
;; Flycheck will also highlight trailing whitespace as an
;; error so no need to highlight it twice.
@@ -88,11 +79,10 @@ See URL `http://pear.php.net/package/PHP_CodeSniffer/'."
'(("\\(?1:.*\\):\\(?2:[0-9]+\\):\\(?3:[0-9]+\\): error - \\(?4:.*\\)" error)
("\\(?1:.*\\):\\(?2:[0-9]+\\):\\(?3:[0-9]+\\): warning - \\(?4:.*\\)"
warning))
:modes '(css-mode js-mode)
- :predicate #'(lambda ()
- (apply 'derived-mode-p (append drupal-php-modes
drupal-css-modes drupal-js-modes))))
-
+ :predicate (lambda ()
+ (and drupal/flycheck-phpcs-js-and-css (apply 'derived-mode-p
(append drupal-php-modes drupal-css-modes drupal-js-modes)))))
+(add-to-list 'flycheck-checkers 'css-js-phpcs)
(provide 'drupal/flycheck)
-
;;; drupal/flycheck.el ends here
- [nongnu] elpa/drupal-mode 6b22e8c714 059/308: Added copyright and author comments., (continued)
- [nongnu] elpa/drupal-mode 6b22e8c714 059/308: Added copyright and author comments., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode bb47e5d71b 086/308: Replaced nested `if's with `cond'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode de6c1b1442 057/308: Better checking for major modes., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 5e5f6e2782 084/308: Added drupal-mode support for `auto-insert-mode'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 511fa0de3f 104/308: Ensured file extensions are actually extensions., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 8947650b95 119/308: Rewritten Makefile to use Carton., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 043d79f4ff 127/308: Sort imenu entries by name in .make files., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 3f306071da 137/308: Drupal 8 moved the version number to a new file., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 38783166f3 143/308: Check for drupal/flycheck-phpcs-js-and-css in predicate, now we don't enforce it., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 8d57a2a3d6 146/308: Added `hash-table-p` check., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 274015c27a 147/308: Merge pull request #37 from xendk/develop,
ELPA Syncer <=
- [nongnu] elpa/drupal-mode 4adeb0c218 150/308: Fixed tar on Mac OS X., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode e20d8fefaa 153/308: Swicth to https links to Drupal.org., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 8eec967164 152/308: Fixed latest commit., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 36a8caff76 156/308: Bumped version number to 0.3.0., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 557f34c5d3 163/308: Fixed tar on Mac OS X., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 4e4714fc16 165/308: ..., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 919154b7f4 158/308: Merge branch 'release/0.3.0' into develop, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 493acf44da 166/308: Redone building `drupal-mode-map`., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode a25b4df69a 179/308: Cope with different implementations of flymake-phpcs., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 9b091a3b71 182/308: Merge tag '0.4.0' into develop, ELPA Syncer, 2022/01/25