Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
allow phpmetrics --git option
  • Loading branch information
flavius committed Mar 13, 2018
commit df0424e33bde3bfc68e04224180402576e12bd59
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