digipolisgent / robo-digipolis-code-validation
Code validation tasks for Robo Task Runner
Installs: 35 158
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Type:robo-tasks
Requires
- consolidation/robo: ^1.0|^2.0
- phpmd/phpmd: ^2.6
- squizlabs/php_codesniffer: *
Requires (Dev)
- phpunit/phpunit: ~4.4
This package is auto-updated.
Last update: 2024-11-18 23:27:21 UTC
README
General code validation tasks for Robo Task Runner
Commands
This package provides default commands which you can use in your RoboFile.php
like so:
class RoboFile extends \Robo\Tasks { use \DigipolisGent\Robo\Task\CodeValidation\Commands\loadCommands; }
digipolis:php-cs
vendor/bin/robo digipolis:php-cs [OPTIONS]
Options
--dir
The directory containing the code to validate.
--standard
The coding standard to validate the code against.
--extensions
The file extensions of the files to validate.
--ignore
Comma separated list of files/directories to ignore.
--report-type
The report type to generate (e.g. 'checkstyle' or 'json').
--report-file
The file to output the generated report in.
digipolis:php-md
vendor/bin/robo digipolis:php-md [OPTIONS]
Options
--dir
The directory containing the code to check.
--format
The format to output the code in (xml, html or text).
--extensions
The file extensions of the files to check.
--ignore
Comma separated list of files/directories to ignore.
--minimum-priority
The rule priority threshold; rules with lower priority than this will not be used.
--report-file
The file to output the generated report in.
--rulesets
A comma-separated string of ruleset filenames.