We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 01b51c6 + e9bf339 commit 879e304Copy full SHA for 879e304
linter.py
@@ -13,13 +13,8 @@
13
14
class Phpcs(Linter):
15
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
- )
+ cmd = ('phpcs', '--report=emacs', '${args}', '-')
+ regex = r'^.*:(?P<line>[0-9]+):(?P<col>[0-9]+): (?:(?P<error>error)|(?P<warning>warning)) - (?P<message>.+)'
23
defaults = {
24
# we want auto-substitution of the filename, but `cmd` does not support that yet
25
'--stdin-path=': '${file}',
0 commit comments