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 6972dce + 7bd85db commit bdf8c69Copy full SHA for bdf8c69
linter.py
@@ -1,9 +1,17 @@
1
-from SublimeLinter.lint import Linter, util
+#
2
+# linter.py
3
+# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
4
5
+# License: MIT
6
7
8
+from SublimeLinter.lint import ComposerLinter, util
9
-class Phpcs(Linter):
10
+
11
+class Phpcs(ComposerLinter):
12
cmd = ('phpcs', '--report=emacs', '${args}', '-')
13
regex = r'^.*:(?P<line>[0-9]+):(?P<col>[0-9]+): (?:(?P<error>error)|(?P<warning>warning)) - (?P<message>.+)'
14
+ composer_name = 'phpcs'
15
defaults = {
16
'selector': 'source.php, text.html.basic',
17
# we want auto-substitution of the filename, but `cmd` does not support that yet
0 commit comments