-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first pass at documenting codesniffer commands
- Loading branch information
Ben Roberts
committed
Jul 10, 2017
1 parent
1f253d3
commit 1a792e8
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,22 @@ | ||
By contributing to this project, you agree to irrevocably release your contributions under the same licenses as this project. See README.md for more details. | ||
|
||
|
||
|
||
Coding Standards | ||
----- | ||
|
||
PHP CodeSniffer is used to normalize all code in this project. | ||
Please install it with | ||
```bash | ||
pear install PHP_CodeSniffer | ||
``` | ||
|
||
You can then test your code with | ||
```bash | ||
phpcs --standard=ruleset.xml *.php | ||
``` | ||
Or you can have it autofix whatever it can with | ||
```bash | ||
phpcbf --standard=ruleset.xml *.php | ||
``` | ||
|