Skip to content
Closed
Changes from all commits
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
allow phpmetrics --junit option
  • Loading branch information
flavius committed Mar 15, 2018
commit e65e26948cd636bd6e816f0a1193e5c027114de0
5 changes: 5 additions & 0 deletions src/Tools/Analyzer/PhpMetricsV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ public function __invoke()
$args['report-html'] = $this->options->toFile('phpmetrics/');
$args['report-violations'] = $this->options->toFile('phpmetrics.xml');
}
if ($junit = $this->config->value('phpmetrics.junit')) {
if (is_file($junit)) {
$args['junit'] = $junit;
}
}
$args[] = $this->options->getAnalyzedDirs(',');
return $args;
}
Expand Down