]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix cppcheck path finding
authorJack Lindamood <jack@quora.com>
Mon, 7 Jan 2013 20:46:49 +0000 (12:46 -0800)
committerepriestley <git@epriestley.com>
Mon, 7 Jan 2013 20:47:00 +0000 (12:47 -0800)
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

index 7fd95adedeb0eea665c332ce78a8e912843c2bbe..7ed4e587a413232f5e779c778bb3072e2ed450be 100644 (file)
@@ -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) {