Skip to content

Commit

Permalink
Merge pull request magento#150 from magento/develop-phpcbf
Browse files Browse the repository at this point in the history
How to use phpcbf
  • Loading branch information
lenaorobei authored Oct 15, 2019
2 parents f062ab4 + 2706faf commit 49071e4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ Once installed, you can run `phpcs` from the command-line to analyse your code `
```
$ vendor/bin/phpcs --standard=Magento2 app/code/MyAwesomeExtension
```

### Fixing issues automatically
Also you can run `phpcbf` from the command-line to fix your code `MyAwesomeExtension` for warnings like
"PHPCBF CAN FIX THE [0-9]+ MARKED SNIFF VIOLATIONS AUTOMATICALLY"
```
$ vendor/bin/phpcbf --standard=Magento2 app/code/MyAwesomeExtension
```

## Where to contribute
- Documentation of existing rules. See [ExtDN PHP CodeSniffer rules for Magento 2](https://github.com/extdn/extdn-phpcs) as a good example.
- Bug fixes and improvements of existing rules.
Expand Down

0 comments on commit 49071e4

Please sign in to comment.