From 3cf6d3a8a9feea44647f7e866fd0e309039e7139 Mon Sep 17 00:00:00 2001 From: Thomas Fini Hansen Date: Fri, 3 Jan 2014 13:42:17 +0100 Subject: [PATCH] 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 ff047a3..d671587 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)))))