Repository URL to install this package:
|
Version:
1.0.2 ▾
|
| scripts |
| src |
| .gitignore |
| .travis.yml |
| README.md |
| phpcs.example.xml |
| composer.json |
Crazy Factory default code styles to be used with Squizlabs' codesniffer.
Copy phpcs.example.xml over to your project and rename it to phpcs.xml
Remove the <file> tag that does not exist in your project.
Run composer require-dev squizlabs/php_codesniffer
Add a linting command to composer.json
"scripts": {
"lint": "phpcs --standard=phpcs.xml",
"lint:fix": "phpcbf --standard=phpcs.xml"
}