sweetchuck / robo-phpmd
Robo task wrapper for PHPMD commands
Installs: 92 861
Dependents: 23
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 1
Type:robo-tasks
pkg:composer/sweetchuck/robo-phpmd
Requires
- php: >=7.2
 - consolidation/robo: ^2.0
 - danielstjules/stringy: ^3.1
 - phpmd/phpmd: ^2.6
 - webmozart/path-util: ^2.3
 
Requires (Dev)
- ext-json: *
 - codeception/codeception: ^4.0
 - codeception/module-asserts: ^1.1
 - mikey179/vfsstream: ^1.6
 - phpunit/phpunit: ^8.0
 - squizlabs/php_codesniffer: ^3.5
 - sweetchuck/codeception-module-robo-task-runner: ^0.7
 - sweetchuck/git-hooks: ^0.1
 - sweetchuck/robo-git: ^0.3
 - sweetchuck/robo-phpcs: ^0.2
 - symfony/error-handler: ^5.0
 - symfony/finder: ^4.0 || ^5.0
 - symfony/yaml: ^4.0 || ^5.0
 
README
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']); } }