digipolisgent/robo-digipolis-code-validation

Code validation tasks for Robo Task Runner

0.1.3 2019-11-18 11:53 UTC

This package is auto-updated.

Last update: 2024-06-18 22:31:27 UTC


README

Robo Digipolis Code Validation

General code validation tasks for Robo Task Runner

Latest Stable Version Latest Unstable Version Total Downloads License

Build Status Maintainability Test Coverage PHP 7 ready

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.