From: Jack Lindamood Date: Mon, 7 Jan 2013 20:46:49 +0000 (-0800) Subject: Fix cppcheck path finding X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=48f5ecb05c7e0a6fd34f9ba99fbde1206a618c68;p=arcanist.git Fix cppcheck path finding Summary: This fix lets you run arc lint from any directory in the repository Test Plan: Ran arc lint from any directory Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4356 --- diff --git a/src/lint/linter/ArcanistCppcheckLinter.php b/src/lint/linter/ArcanistCppcheckLinter.php index 7fd95ade..7ed4e587 100644 --- a/src/lint/linter/ArcanistCppcheckLinter.php +++ b/src/lint/linter/ArcanistCppcheckLinter.php @@ -79,7 +79,7 @@ final class ArcanistCppcheckLinter extends ArcanistLinter { "%C %C --inline-suppr --xml-version=2 -q %s", $bin, $options, - $path + $this->getEngine()->getFilePathOnDisk($path) ); if ($rc === 1) {