Skip to content

Commit

Permalink
Merge pull request #28 from SublimeLinter/emacs-report
Browse files Browse the repository at this point in the history
use emacs report style
  • Loading branch information
braver authored Mar 4, 2018
2 parents 01b51c6 + e9bf339 commit 879e304
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,8 @@

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

0 comments on commit 879e304

Please sign in to comment.