From dbe8fc735c2c600e9aa2051f9f122d3cc1ca430b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arne=20J=C3=B8rgensen?= Date: Wed, 29 Jan 2014 22:22:33 +0100 Subject: [PATCH] Fixed when real file is in a sym linked directory. If one of the directories in the path is a symbolic link the errors from phpcs will not be picked up. This change makes it work (and still works when there are no symbolic links). --- flymake-phpcs.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flymake-phpcs.el b/flymake-phpcs.el index 7163162..66ccbe8 100644 --- a/flymake-phpcs.el +++ b/flymake-phpcs.el @@ -1,6 +1,6 @@ ;;; flymake-phpcs.el --- Flymake handler for PHP to invoke PHP-CodeSniffer ;; -;; Copyright (C) 2011-2012 Free Software Foundation, Inc. +;; Copyright (C) 2011-2012, 2014 Free Software Foundation, Inc. ;; ;; Author: Sam Graham ;; Maintainer: Sam Graham @@ -55,7 +55,7 @@ 'flymake-create-temp-copy 'flymake-create-temp-inplace))) (local-file (file-relative-name temp-file - (file-name-directory buffer-file-name)))) + (file-name-directory (file-truename buffer-file-name))))) (list flymake-phpcs-command (append (list local-file)