Skip to content
This repository was archived by the owner on Oct 19, 2020. It is now read-only.

Commit d102282

Browse files
authored
Update README.md
1 parent 03defeb commit d102282

File tree

1 file changed

+23
-26
lines changed

1 file changed

+23
-26
lines changed

README.md

Lines changed: 23 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,6 @@ Comprehensive [plugin for composer](https://getcomposer.org/doc/articles/plugins
1717
- Total Execution time
1818
- Command executed by the wrapper
1919

20-
## Sample
21-
22-
```bash
23-
$ cd /sample
24-
$ composer qa:cpd
25-
26-
Running Copy/Paste Detector...
27-
phpcpd 2.0.4 by Sebastian Bergmann.
28-
29-
30-
Found 1 exact clones with 654 duplicated lines in 2 files:
31-
32-
- /sample/tests/Folha/Durin/Models/News/NewstextTest.php:73-132
33-
/sample/tests/Folha/Durin/Adapters/Resource/News/NewstextResourceTest.php:59-118
34-
35-
0.08% duplicated lines out of 58771 total lines of code.
36-
37-
Time: 1.31 seconds, Memory: 46.25MB
38-
39-
Command executed `phpcpd app tests --ansi --fuzzy` in 1 seconds
40-
```
41-
4220
## Install
4321

4422
Add to composer.json:
@@ -64,13 +42,32 @@ $ composer list
6442

6543
![](https://pbs.twimg.com/media/CtOb2zfXYAAQ21O.jpg)
6644

67-
All plugins (except ```qa:test```) have the short version, example,```qa:sc``` is short version for ```qa:security-checker```.
45+
Almost commands have the short version, example,```qa:sec``` is short version for ```qa:security-checker```.
6846

69-
## PHP Quality Assurance Tools
47+
## Sample
48+
49+
Run Code Sniffer to all source code (```composer qa:cs``` is a short version):
50+
51+
![](https://pbs.twimg.com/media/CtOelj1WYAAHqrS.jpg)
52+
53+
If you change some peace of code e need run for this change:
54+
55+
![](https://pbs.twimg.com/media/CtOeVnyWYAAfQMx.jpg:large)
56+
57+
Is possibile to point for diretory or file:
7058

71-
This is a composer meta package for installing PHP Quality Assurance Tools with only one dependency, based on [h4cc/phpqatools](https://github.com/h4cc/phpqatools).
59+
```bash
60+
$ composer qa:cs app/ACME
61+
$ composer qa:cs app/ACME/Bomb.php
62+
```
63+
64+
To see options for any QA command:
65+
66+
```bash
67+
$ composer qa:cpd --help
68+
```
7269

73-
Included in this package (based on [phpqatools](http://phpqatools.org/)) are:
70+
## List of PHP Quality Assurance Tools
7471

7572
- [PHPUnit](https://github.com/sebastianbergmann/phpunit): Testing Framework
7673
- [PHPCOV](https://github.com/sebastianbergmann/phpcov): CLI frontend for the [PHP_CodeCoverage](https://github.com/sebastianbergmann/php-code-coverage)

0 commit comments

Comments
 (0)