From: Joshua Spence Date: Sun, 11 Jan 2015 19:44:08 +0000 (+1100) Subject: Fix parsing of `puppet-lint --version` X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=14e5fbbd6bfd3c3b8c7ba6f85437bbcd3241fde9;p=arcanist.git Fix parsing of `puppet-lint --version` Summary: This seems to be off, at least for `puppet-lint` versions greater than 1.0. Test Plan: `arc unit` Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11312 --- diff --git a/src/lint/linter/ArcanistPuppetLintLinter.php b/src/lint/linter/ArcanistPuppetLintLinter.php index be2e6076..bc8145c4 100644 --- a/src/lint/linter/ArcanistPuppetLintLinter.php +++ b/src/lint/linter/ArcanistPuppetLintLinter.php @@ -38,7 +38,7 @@ final class ArcanistPuppetLintLinter extends ArcanistExternalLinter { list($stdout) = execx('%C --version', $this->getExecutableCommand()); $matches = array(); - $regex = '/^Puppet-lint (?P\d+\.\d+\.\d+)$/'; + $regex = '/^puppet-lint (?P\d+\.\d+\.\d+)$/'; if (preg_match($regex, $stdout, $matches)) { return $matches['version']; } else {