diff --git a/linter.py b/linter.py index 6748c2c..65893dd 100644 --- a/linter.py +++ b/linter.py @@ -5,7 +5,7 @@ class Phpcs(ComposerLinter): cmd = ('phpcs', '--report=emacs', '${args}', '-') regex = r'^.*:(?P[0-9]+):(?P[0-9]+): (?:(?Perror)|(?Pwarning)) - (?P(.(?!\(\S+\)$))+)( \((?P\S+)\)$)?' # noqa: E501 defaults = { - 'selector': 'source.php - text.blade, text.html.basic', + 'selector': 'embedding.php, source.php - text.blade', # we want auto-substitution of the filename, # but `cmd` does not support that yet '--stdin-path=': '${file}'