library phpmd-task
PHPMD task for Soy
soy-php/phpmd-task
PHPMD task for Soy
- Friday, November 20, 2015
- by rskuipers
- Repository
- 1 Watchers
- 0 Stars
- 4 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 3 Versions
- 0 % Grown
PHP Mess Detector Task
, (*1)
Introduction
This is a PHP Mess Detector task for Soy, (*2)
Usage
Include soy-php/phpmd-task in your project with composer:, (*3)
$ composer require soy-php/phpmd-task
Then in your recipe you can use the task as follows:, (*4)
<?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;
dev-develop
dev-develop
PHPMD task for Soy
Sources
Download
MIT
The Requires