From e9bf339261636647a2af096d8cf45c2ee6cf202f Mon Sep 17 00:00:00 2001 From: Koen Lageveen Date: Sat, 3 Mar 2018 22:41:06 +0100 Subject: [PATCH] use emacs report style --- linter.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/linter.py b/linter.py index f3f5214..29ce608 100644 --- a/linter.py +++ b/linter.py @@ -17,13 +17,8 @@ class Phpcs(Linter): """Provides an interface to phpcs.""" syntax = ('php', 'html', 'html 5') - cmd = ('phpcs', '--report=checkstyle', '${args}', '-') - regex = ( - r'.*line="(?P\d+)" ' - r'column="(?P\d+)" ' - r'severity="(?:(?Perror)|(?Pwarning))" ' - r'message="(?P.*)" source' - ) + cmd = ('phpcs', '--report=emacs', '${args}', '-') + regex = r'^.*:(?P[0-9]+):(?P[0-9]+): (?:(?Perror)|(?Pwarning)) - (?P.+)' defaults = { # we want auto-substitution of the filename, but `cmd` does not support that yet '--stdin-path=': '${file}',