From c3f2427b4ac084d905682096bcf8e68273d8b5da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arne=20J=C3=B8rgensen?= Date: Wed, 20 Apr 2016 21:40:38 +0200 Subject: [PATCH] Fix phpcs output parsing Fixes #71. --- drupal/phpcs.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drupal/phpcs.el b/drupal/phpcs.el index 723f9fa..4dd4cbb 100644 --- a/drupal/phpcs.el +++ b/drupal/phpcs.el @@ -1,6 +1,6 @@ ;;; drupal/phpcs.el --- Drupal-mode common support for flymake-phpcs and flycheck -;; Copyright (C) 2012, 2013 Arne Jørgensen +;; Copyright (C) 2012, 2013, 2016 Arne Jørgensen ;; Author: Arne Jørgensen @@ -34,7 +34,7 @@ ;; command. Check for both. (call-process (or (and (boundp 'flymake-phpcs-command) (executable-find flymake-phpcs-command)) (executable-find "phpcs")) nil (list t nil) nil "-i"))))) (when (string-match - "\\(Drupal[^, + "\\(Drupal[^ , ]*\\)" standards) (match-string-no-properties 1 standards))))