[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/drupal-mode 3c32d7e938 169/308: `flycheck-declare-checker`
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/drupal-mode 3c32d7e938 169/308: `flycheck-declare-checker` is now `flycheck-define-checker` |
Date: |
Tue, 25 Jan 2022 10:59:44 -0500 (EST) |
branch: elpa/drupal-mode
commit 3c32d7e938eda3d3e8c6bf28a08ea6ddf7b51bae
Author: spaceotter <spaceotter@users.noreply.github.com>
Commit: Arne Jørgensen <arne@arnested.dk>
`flycheck-declare-checker` is now `flycheck-define-checker`
Fixes #38.
---
drupal/flycheck.el | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/drupal/flycheck.el b/drupal/flycheck.el
index 1aef618e9e..ff047a3397 100644
--- a/drupal/flycheck.el
+++ b/drupal/flycheck.el
@@ -1,6 +1,6 @@
;;; drupal/flycheck.el --- Drupal-mode support for flycheck and phpcs
-;; Copyright (C) 2012, 2013 Arne Jørgensen
+;; Copyright (C) 2012, 2013, 2014 Arne Jørgensen
;; Author: Thomas Fini Hansen <xen@xen.dk>
@@ -25,6 +25,9 @@
;;; Code:
+(eval-when-compile
+ (require 'flycheck))
+
(require 'drupal/phpcs)
(defcustom drupal/flycheck-phpcs-js-and-css t
@@ -48,27 +51,28 @@
(add-hook 'drupal-mode-hook #'drupal/flycheck-hook)
-(flycheck-declare-checker css-js-phpcs
+(flycheck-define-checker css-js-phpcs
"Check CSS and JavaScript using PHP_CodeSniffer.
PHP_CodeSniffer can be used to check non-PHP files, as exemplified by the
Drupal code sniffer.
See URL `http://pear.php.net/package/PHP_CodeSniffer/'."
- :command '("phpcs" "--report=emacs"
- (option "--standard=" flycheck-phpcs-standard)
- source)
+ :command ("phpcs" "--report=emacs"
+ (option "--standard=" flycheck-phpcs-standard)
+ source)
;; 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
- '(("\\(?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)
+ ((error "\\(?1:.*\\):\\(?2:[0-9]+\\):\\(?3:[0-9]+\\): error - \\(?4:.*\\)")
+ (warning "\\(?1:.*\\):\\(?2:[0-9]+\\):\\(?3:[0-9]+\\): warning -
\\(?4:.*\\)"))
+ :modes (css-mode js-mode)
: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)
- [nongnu] elpa/drupal-mode f17e7088ca 107/308: Provide Drupal projects as webjump sites., (continued)
- [nongnu] elpa/drupal-mode f17e7088ca 107/308: Provide Drupal projects as webjump sites., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 043644e85d 109/308: Set correct comment style for inline comments., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode dfd4582048 115/308: Fixed argument insert in `drupal-insert-hook'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode dcea92f3a9 117/308: Added autoinsert skeleton for .test files., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 6dd8edc402 121/308: Eliminated compiler warnings., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 16632d6cf7 133/308: Fixed drush version detection for Drush 7., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 58fb25a914 138/308: Added .cask to .gitignore., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode d04b119de7 141/308: Properly add our checkers to flycheck-checkers instead of enforcing it., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 5eb72aba82 162/308: Merge branch 'release/0.3.1' into develop, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 0eac30704b 167/308: Don't delete `'trailing` form `whitespace-style` after all., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 3c32d7e938 169/308: `flycheck-declare-checker` is now `flycheck-define-checker`,
ELPA Syncer <=
- [nongnu] elpa/drupal-mode 3cf6d3a8a9 173/308: Updated phpcs patterns to new flycheck format., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode a4768c704e 178/308: Fixed namespace of custom variable., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 5ac9531321 177/308: Added default to run flymake in place., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode b2ba37e71a 180/308: Bumped version to 0.4.0., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 65efa5b78a 186/308: Removed usage of directory local variables., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 13b2fff6ef 196/308: Use flycheck-add-next-checker., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 507da75f31 212/308: Use `special-mode` for drush php-eval output., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 11bfbda293 217/308: Added drupal-mode to dired buffers., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode ce9d3a564f 215/308: Fixed regexp., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 75e1d2dccc 230/308: Require dependency., ELPA Syncer, 2022/01/25