#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# License: MIT
#

from SublimeLinter.lint import ComposerLinter, util


class Phpcs(ComposerLinter):
    cmd = ('phpcs', '--report=emacs', '${args}', '-')
    regex = r'^.*:(?P<line>[0-9]+):(?P<col>[0-9]+): (?:(?P<error>error)|(?P<warning>warning)) - (?P<message>.+)'
    composer_name = 'phpcs'
    defaults = {
        'selector': 'source.php, text.html.basic',
        # we want auto-substitution of the filename, but `cmd` does not support that yet
        '--stdin-path=': '${file}',
        '--standard=': 'PSR2',
    }
    error_stream = util.STREAM_STDOUT

from SublimeLinter.lint import ComposerLinter, util


class Phpcs(ComposerLinter):
    cmd = ('phpcs', '--report=emacs', '${args}', '-')
    regex = r'^.*:(?P<line>[0-9]+):(?P<col>[0-9]+): (?:(?P<error>error)|(?P<warning>warning)) - (?P<message>.+)'
    composer_name = 'phpcs'
    defaults = {
        'selector': 'source.php, text.html.basic',
        # we want auto-substitution of the filename, but `cmd` does not support that yet
        '--stdin-path=': '${file}',
        '--standard=': 'PSR2',
    }
    error_stream = util.STREAM_STDOUT

Remove noise comment