sweetchuck/robo-phpmd

Robo task wrapper for PHPMD commands

Maintainers

👁 Sweetchuck

Package info

github.com/Sweetchuck/robo-phpmd

Type:robo-tasks

pkg:composer/sweetchuck/robo-phpmd

Statistics

Installs: 93 785

Dependents: 23

Suggesters: 0

Stars: 0

Open Issues: 1

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

GPL-2.0-or-later 2167f21869c28a304350f329d6897a92b2123179

This package is auto-updated.

Last update: 2026-06-28 20:34:46 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']);
 }
}