Skip to content

Commit e9bf339

Browse files
committed
use emacs report style
1 parent 477f6f2 commit e9bf339

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

linter.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,8 @@ class Phpcs(Linter):
1717
"""Provides an interface to phpcs."""
1818

1919
syntax = ('php', 'html', 'html 5')
20-
cmd = ('phpcs', '--report=checkstyle', '${args}', '-')
21-
regex = (
22-
r'.*line="(?P<line>\d+)" '
23-
r'column="(?P<col>\d+)" '
24-
r'severity="(?:(?P<error>error)|(?P<warning>warning))" '
25-
r'message="(?P<message>.*)" source'
26-
)
20+
cmd = ('phpcs', '--report=emacs', '${args}', '-')
21+
regex = r'^.*:(?P<line>[0-9]+):(?P<col>[0-9]+): (?:(?P<error>error)|(?P<warning>warning)) - (?P<message>.+)'
2722
defaults = {
2823
# we want auto-substitution of the filename, but `cmd` does not support that yet
2924
'--stdin-path=': '${file}',

0 commit comments

Comments
 (0)