Skip to content

Commit 2e3c684

Browse files
author
Leandro F. L
committed
How to use phpcbf
1 parent f062ab4 commit 2e3c684

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ 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+
Also you can run `phpcbf` from the command-line to fix your code `MyAwesomeExtension` for warnings like
47+
"PHPCBF CAN FIX THE [0-9]+ MARKED SNIFF VIOLATIONS AUTOMATICALLY"
48+
```
49+
$ vendor/bin/phpcbf --standard=Magento2 app/code/MyAwesomeExtension
50+
```
51+
4552
## Where to contribute
4653
- Documentation of existing rules. See [ExtDN PHP CodeSniffer rules for Magento 2](https://github.com/extdn/extdn-phpcs) as a good example.
4754
- Bug fixes and improvements of existing rules.

0 commit comments

Comments
 (0)