File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -31,27 +31,39 @@ vendor/bin/cs2pr /path/to/checkstyle-report.xml
31
31
32
32
## Pipe the output of another commmand
33
33
34
+ ... works for __ any__ command which produces a checkstyle-formatted report.
35
+
36
+ Examples can bee seen below:
37
+
34
38
### Using [ PHPStan] ( https://github.com/phpstan/phpstan )
39
+
35
40
``` bash
36
41
phpstan analyse --error-format=checkstyle | vendor/bin/cs2pr
37
42
```
38
43
39
44
### Using [ Psalm] ( https://github.com/vimeo/psalm )
45
+
40
46
``` bash
41
47
psalm --output-format=checkstyle | vendor/bin/cs2pr
42
48
```
43
49
44
50
_ Psalm even supports the required format natively, therefore you might even use this instead:_
51
+
45
52
``` bash
46
53
psalm --output-format=github
47
54
```
48
55
49
56
### Using [ PHP Coding Standards Fixer] ( https://github.com/FriendsOfPHP/PHP-CS-Fixer )
57
+
50
58
``` bash
51
59
php-cs-fixer --format=checkstyle | vendor/bin/cs2pr
52
60
```
53
61
54
- ... works for __ any__ command which produces a checkstyle-formatted report.
62
+ ### Using [ PHP_CodeSniffer] ( https://github.com/squizlabs/PHP_CodeSniffer )
63
+
64
+ ``` bash
65
+ phpcs --report=checkstyle /path/to/code | vendor/bin/cs2pr
66
+ ```
55
67
56
68
## phpunit support?
57
69
You can’t perform that action at this time.
0 commit comments