branch: elpa/drupal-mode
commit 3cf6d3a8a9feea44647f7e866fd0e309039e7139
Author: Thomas Fini Hansen <[email protected]>
Commit: Thomas Fini Hansen <[email protected]>
Updated phpcs patterns to new flycheck format.
---
drupal/flycheck.el | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drupal/flycheck.el b/drupal/flycheck.el
index ff047a3397..d671587aef 100644
--- a/drupal/flycheck.el
+++ b/drupal/flycheck.el
@@ -67,8 +67,12 @@ See URL `http://pear.php.net/package/PHP_CodeSniffer/'."
;; `https://github.com/lunaryorn/flycheck/issues/78' and URL
;; `https://github.com/lunaryorn/flycheck/issues/118'
:error-patterns
- ((error "\\(?1:.*\\):\\(?2:[0-9]+\\):\\(?3:[0-9]+\\): error - \\(?4:.*\\)")
- (warning "\\(?1:.*\\):\\(?2:[0-9]+\\):\\(?3:[0-9]+\\): warning -
\\(?4:.*\\)"))
+ ((error line-start
+ (file-name) ":" line ":" column ": error - " (message)
+ line-end)
+ (warning line-start
+ (file-name) ":" line ":" column ": warning - " (message)
+ line-end))
: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)))))