[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/drupal-mode eec2e557d7 277/308: Updated to the latest flyc
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/drupal-mode eec2e557d7 277/308: Updated to the latest flycheck. |
Date: |
Tue, 25 Jan 2022 10:59:57 -0500 (EST) |
branch: elpa/drupal-mode
commit eec2e557d769f3379e6c208334650f3041d28d54
Author: Thomas Fini Hansen <xen@xen.dk>
Commit: Thomas Fini Hansen <xen@xen.dk>
Updated to the latest flycheck.
---
drupal/flycheck.el | 35 +++++++++++++++++++----------------
1 file changed, 19 insertions(+), 16 deletions(-)
diff --git a/drupal/flycheck.el b/drupal/flycheck.el
index 1eb3675bf7..42b22527ae 100644
--- a/drupal/flycheck.el
+++ b/drupal/flycheck.el
@@ -49,21 +49,24 @@ The Drupal standard includes checks for non-PHP files, this
checker runs those.
See URL `http://pear.php.net/package/PHP_CodeSniffer/'."
- :command ("phpcs" "--report=emacs"
- (option "--standard=" drupal/phpcs-standard concat)
- source-inplace)
- ;; Though phpcs supports Checkstyle output which we could feed to
- ;; `flycheck-parse-checkstyle', we are still using error patterns here,
- ;; because PHP has notoriously unstable output habits. See URL
- ;; `https://github.com/lunaryorn/flycheck/issues/78' and URL
- ;; `https://github.com/lunaryorn/flycheck/issues/118'
- :error-patterns
- ((error line-start
- (file-name) ":" line ":" column ": error - " (message)
- line-end)
- (warning line-start
- (file-name) ":" line ":" column ": warning - " (message)
- line-end))
+ :command ("phpcs" "--report=checkstyle"
+ (option "--standard=" flycheck-phpcs-standard concat)
+ ;; Pass original file name to phpcs. We need to concat explicitly
+ ;; here, because phpcs really insists to get option and argument as
+ ;; a single command line argument :|
+ (eval (when (buffer-file-name)
+ (concat "--stdin-path=" (buffer-file-name)))))
+ :standard-input t
+ :error-parser flycheck-parse-checkstyle
+ :error-filter
+ (lambda (errors)
+ (flycheck-sanitize-errors
+ (flycheck-remove-error-file-names "STDIN" errors)))
+ ;; Hardcoded for the moment, as this doesn't work:
+ ;; :modes (append drupal-css-modes drupal-js-modes drupal-info-modes)
+ ;; As they're reworking the checker selection code, we're letting this
+ ;; lie for the moment.
+ :modes (css-mode javascript-mode js-mode js2-mode conf-windows-mode)
:predicate (lambda ()
(and drupal-mode drupal/phpcs-standard)))
@@ -73,7 +76,7 @@ See URL `http://pear.php.net/package/PHP_CodeSniffer/'."
(let ((modes (append drupal-css-modes drupal-js-modes drupal-info-modes)))
(dolist (checker (flycheck-defined-checkers))
(dolist (mode (flycheck-checker-get checker 'modes))
- (if (memq mode modes)
+ (if (and (memq mode modes) (not (eq checker 'drupal-phpcs)))
(flycheck-add-next-checker checker 'drupal-phpcs)))))
- [nongnu] elpa/drupal-mode 914d2df539 222/308: Fixed URL of Drupalcontrib.org API., (continued)
- [nongnu] elpa/drupal-mode 914d2df539 222/308: Fixed URL of Drupalcontrib.org API., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 5ad113d48f 255/308: Add `drupal-drush-sql-cli` command, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode b62d89c177 251/308: Fix up for latest flycheck., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode c2d7bc42e3 252/308: Merge pull request #63 from arnested/feature/flycheck-update, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 59bbaaf4f1 249/308: Merge branch 'release/0.6.1' into develop, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 0cd2412756 257/308: Avoid "no tags containing" error in hook skeleton, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 36ea4003da 259/308: Merge pull request #65 from joddie/feature/sql-cli, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 2cca689e26 268/308: Better gtags-helm support., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode a02e1dde00 271/308: Merge pull request #72 from arnested/fix-phpcs-output-parsing, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode f425ba445a 276/308: Merge branch 'release/0.7.1' into develop, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode eec2e557d7 277/308: Updated to the latest flycheck.,
ELPA Syncer <=
- [nongnu] elpa/drupal-mode 643c7538b0 279/308: Merge pull request #78 from arnested/continuation-style, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode dea5a8da78 280/308: Fix thinko, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode ca569eaa62 281/308: Update obsoleted comment, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 47fda0a38a 287/308: Ignore errors in `drupal/gxref-get-function-args`, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 95bf73b4b6 288/308: Create SECURITY.md, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode ee53f9e12b 289/308: Create CODE_OF_CONDUCT.md, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode ba80d4d5c8 290/308: Remove drupalcontrib.com as search URL option, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 3ce73dd221 292/308: Fix array member indentation in function calls, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode cca428d723 296/308: Run tests on Emacs 25.3, 26.3, and snapshot, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 3e0ed63e4b 298/308: Fix array member indentation in function calls - take 2, ELPA Syncer, 2022/01/25