Skip to content

Commit 72ceba6

Browse files
committed
Merge pull request #39 from xendk/develop
Updated phpcs patterns to new flycheck format.
2 parents 6bb266b + 3cf6d3a commit 72ceba6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

drupal/flycheck.el

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,12 @@ See URL `http://pear.php.net/package/PHP_CodeSniffer/'."
6767
;; `https://github.com/lunaryorn/flycheck/issues/78' and URL
6868
;; `https://github.com/lunaryorn/flycheck/issues/118'
6969
:error-patterns
70-
((error "\\(?1:.*\\):\\(?2:[0-9]+\\):\\(?3:[0-9]+\\): error - \\(?4:.*\\)")
71-
(warning "\\(?1:.*\\):\\(?2:[0-9]+\\):\\(?3:[0-9]+\\): warning - \\(?4:.*\\)"))
70+
((error line-start
71+
(file-name) ":" line ":" column ": error - " (message)
72+
line-end)
73+
(warning line-start
74+
(file-name) ":" line ":" column ": warning - " (message)
75+
line-end))
7276
:modes (css-mode js-mode)
7377
:predicate (lambda ()
7478
(and drupal/flycheck-phpcs-js-and-css (apply 'derived-mode-p (append drupal-php-modes drupal-css-modes drupal-js-modes)))))

0 commit comments

Comments
 (0)