Skip to content

soy-php/phpmd-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Mess Detector Task

Latest Stable Version Total Downloads Latest Unstable Version License

Introduction

This is a PHP Mess Detector task for Soy

Usage

Include soy-php/phpmd-task in your project with composer:

$ composer require soy-php/phpmd-task

Then in your recipe you can use the task as follows:

<?php

$recipe = new \Soy\Recipe();

$recipe->component('default', function (\Soy\PhpMessDetector\RunTask $messDetectorTask) {
    $messDetectorTask
        ->setBinary('phpmd')
        ->addTarget('.')
        ->setVerbose(true)
        ->setThrowExceptionOnError(false)
        ->addExcludePattern('vendor/')
        ->addSuffix('php')
        ->setReport(\Soy\PhpMessDetector\RunTask::REPORT_XML)
        ->setStrict(true)
        ->run();
});

return $recipe;

About

PHP Mess Detector task for Soy

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages