We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc02532 commit df0424eCopy full SHA for df0424e
src/Tools/Analyzer/PhpMetricsV2.php
@@ -20,6 +20,13 @@ public function __invoke()
20
$args['report-html'] = $this->options->toFile('phpmetrics/');
21
$args['report-violations'] = $this->options->toFile('phpmetrics.xml');
22
}
23
+ if ($git = $this->config->value('phpmetrics.git')) {
24
+ if (is_bool($git)) {
25
+ $args[] = '--git';
26
+ } else {
27
+ $args['git'] = $git;
28
+ }
29
30
$args[] = $this->options->getAnalyzedDirs(',');
31
return $args;
32
0 commit comments