Skip to content

Commit

Permalink
allow phpmetrics --git option
Browse files Browse the repository at this point in the history
  • Loading branch information
flavius committed Mar 13, 2018
1 parent dc02532 commit df0424e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Tools/Analyzer/PhpMetricsV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ public function __invoke()
$args['report-html'] = $this->options->toFile('phpmetrics/');
$args['report-violations'] = $this->options->toFile('phpmetrics.xml');
}
if ($git = $this->config->value('phpmetrics.git')) {
if (is_bool($git)) {
$args[] = '--git';
} else {
$args['git'] = $git;
}
}
$args[] = $this->options->getAnalyzedDirs(',');
return $args;
}
Expand Down

0 comments on commit df0424e

Please sign in to comment.