sweetchuck/robo-phpmd

Robo task wrapper for PHPMD commands

Installs: 91 454

Dependents: 19

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 1

Open Issues: 0

Type:robo-tasks

v0.2.0 2020-08-09 18:54 UTC

This package is auto-updated.

Last update: 2024-03-29 12:51:35 UTC


README

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