Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 787 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 787 Bytes

Robo task wrapper for PHPMD (PHP Mess Detector)

CircleCI codecov

Usage

<?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']);
    }
}