Refactored plugin PhpCsFixer (Added more backward compatibility). Issue #63.
This commit is contained in:
parent
9c1dcbf6a9
commit
e2b6f5aefd
2 changed files with 20 additions and 3 deletions
|
|
@ -8,7 +8,10 @@ Configuration
|
|||
|
||||
### Options
|
||||
|
||||
* **verbose** [bool, optional] - Whether to run in verbose mode (default: false)
|
||||
* **diff** [bool, optional] - Whether to run with the `--diff` flag enabled (default: false)
|
||||
* **directory** [string, optional] - The directory in which PHP CS Fixer should work (default: `%BUILD_PATH%`)
|
||||
* **rules** [string, optional] - Fixer rules (default: `@PSR2`)
|
||||
* **args** [string, optional] - Command line args (in string format) to pass to PHP Coding Standards Fixer (default: ``)
|
||||
|
||||
### Examples
|
||||
|
|
@ -24,5 +27,7 @@ test:
|
|||
test:
|
||||
php_cs_fixer:
|
||||
directory: "%BUILD_PATH%/my/dir/path"
|
||||
args: "--rules=@PSR2"
|
||||
verbose: true
|
||||
diff: true
|
||||
rules: "@PSR2"
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue