Skip to content

Commit 879e304

Browse files
authored
Merge pull request #28 from SublimeLinter/emacs-report
use emacs report style
2 parents 01b51c6 + e9bf339 commit 879e304

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

linter.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,8 @@
1313

1414
class Phpcs(Linter):
1515
syntax = ('php', 'html', 'html 5')
16-
cmd = ('phpcs', '--report=checkstyle', '${args}', '-')
17-
regex = (
18-
r'.*line="(?P<line>\d+)" '
19-
r'column="(?P<col>\d+)" '
20-
r'severity="(?:(?P<error>error)|(?P<warning>warning))" '
21-
r'message="(?P<message>.*)" source'
22-
)
16+
cmd = ('phpcs', '--report=emacs', '${args}', '-')
17+
regex = r'^.*:(?P<line>[0-9]+):(?P<col>[0-9]+): (?:(?P<error>error)|(?P<warning>warning)) - (?P<message>.+)'
2318
defaults = {
2419
# we want auto-substitution of the filename, but `cmd` does not support that yet
2520
'--stdin-path=': '${file}',

0 commit comments

Comments
 (0)