php-censor/docs/en/plugins/php_cpd.md

25 lines
541 B
Markdown
Raw Normal View History

2016-07-19 11:12:28 +02:00
Plugin PHP Copy/Paste Detector
------------------------------
Runs PHP Copy/Paste Detector against your build.
Configuration
=============
2016-07-17 16:20:35 +02:00
### Options
2016-07-19 11:12:28 +02:00
2016-07-17 16:20:35 +02:00
* **path** - Optional - Path in which to run PHP Copy/Paste Detector (default: build root).
* **ignore** - Optional - A list of files / paths to ignore (default: build_settings > ignore).
* **standard** [string, optional] - which PSR standard to follow (default: 'PSR1').
2016-07-19 11:12:28 +02:00
### Examples
2016-07-17 16:20:35 +02:00
```yml
test:
php_cpd:
standard: "PSR2"
path: "app"
ignore:
- "app/my/path"
```