<?php
use Robo\Tasks;
use Sweetchuck\Robo\PhpMessDetector\PhpmdTaskLoader;
class RoboFile extends Tasks
{
use PhpmdTaskLoader;
public function phpmd()
{
return $this
->taskPhpmdLintFiles()
->setPaths(['src/', 'tests/'])
->setExcludePaths(['src/foo.php'])
->setReportFormat('text')
->setRuleSetFileNames(['path/to/custom.xml']);
}
}