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.
1 parent e356ce2 commit 8a9b63bCopy full SHA for 8a9b63b
1 file changed
linter.py
@@ -2,8 +2,8 @@
2
3
4
class Phpcs(ComposerLinter):
5
- cmd = ('phpcs', '--report=emacs', '${args}', '-')
6
- regex = r'^.*:(?P<line>[0-9]+):(?P<col>[0-9]+): (?:(?P<error>error)|(?P<warning>warning)) - (?P<message>(.(?!\(\S+\)$))+)( \((?P<code>\S+)\)$)?' # noqa: E501
+ cmd = ('phpcs', '--report=checkstyle', '${args}', '-')
+ regex = r'^\s*<error line="(?P<line>\d+)" column="(?P<col>\d+)" severity="(?:(?P<error>error)|(?P<warning>warning))" message="(?P<message>[^"]+)" source="(?P<code>[^"]+)"' # noqa: E501
7
defaults = {
8
'selector': 'embedding.php, source.php - text.blade',
9
# we want auto-substitution of the filename,
0 commit comments