2017 © Pedro Peláez
 

library robo-phpmd

Template to create a new Robo task.

image

sweetchuck/robo-phpmd

Template to create a new Robo task.

  • Wednesday, May 2, 2018
  • by Sweetchuck
  • Repository
  • 1 Watchers
  • 0 Stars
  • 23 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 9 Versions
  • 35 % Grown

The README.md

Robo task wrapper for PHPMD (PHP Mess Detector)

CircleCI codecov, (*1)

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

The Versions