From 48f5ecb05c7e0a6fd34f9ba99fbde1206a618c68 Mon Sep 17 00:00:00 2001 From: Jack Lindamood Date: Mon, 7 Jan 2013 12:46:49 -0800 Subject: [PATCH] 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 --- src/lint/linter/ArcanistCppcheckLinter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {