Skip to content

Commit 49071e4

Browse files
authored
Merge pull request #150 from magento/develop-phpcbf
How to use phpcbf
2 parents f062ab4 + 2706faf commit 49071e4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ Once installed, you can run `phpcs` from the command-line to analyse your code `
4242
```
4343
$ vendor/bin/phpcs --standard=Magento2 app/code/MyAwesomeExtension
4444
```
45+
46+
### Fixing issues automatically
47+
Also you can run `phpcbf` from the command-line to fix your code `MyAwesomeExtension` for warnings like
48+
"PHPCBF CAN FIX THE [0-9]+ MARKED SNIFF VIOLATIONS AUTOMATICALLY"
49+
```
50+
$ vendor/bin/phpcbf --standard=Magento2 app/code/MyAwesomeExtension
51+
```
52+
4553
## Where to contribute
4654
- Documentation of existing rules. See [ExtDN PHP CodeSniffer rules for Magento 2](https://github.com/extdn/extdn-phpcs) as a good example.
4755
- Bug fixes and improvements of existing rules.

0 commit comments

Comments
 (0)