sweetchuck/robo-phpmd

Robo task wrapper for PHPMD commands

Installs: 92 633

Dependents: 26

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 1

Open Issues: 1

Type:robo-tasks

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

This package is auto-updated.

Last update: 2024-12-18 15:12:55 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']);
    }
}