Skip to content

Commit 8a9b63b

Browse files
committed
use checktyle report for more detail
get access to the error code, missing from the emacs output also make the quick action work
1 parent e356ce2 commit 8a9b63b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

linter.py

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

33

44
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
5+
cmd = ('phpcs', '--report=checkstyle', '${args}', '-')
6+
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
77
defaults = {
88
'selector': 'embedding.php, source.php - text.blade',
99
# we want auto-substitution of the filename,

0 commit comments

Comments
 (0)