Skip to content

Commit 2706faf

Browse files
Leandro F. Llenaorobei
Leandro F. L
andcommitted
How to use phpcbf
How to use phpcbf Co-Authored-By: Lena Orobei <[email protected]>
1 parent f062ab4 commit 2706faf

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)