12 use \Magento\TestFramework\CodingStandard\ToolInterface;
38 $this->reportFile = $reportFile;
39 $this->rulesetFile = $rulesetFile;
55 public function run(array $whiteList)
57 if (empty($whiteList)) {
58 return \PHPMD\TextUI\Command::EXIT_SUCCESS;
61 $commandLineArguments = [
63 implode(
',', $whiteList),
70 $options = new \PHPMD\TextUI\CommandLineOptions($commandLineArguments);
72 $command = new \PHPMD\TextUI\Command();
74 return $command->run(
$options,
new \PHPMD\RuleSetFactory());