Repository URL to install this package:
|
Version:
1.0.2 ▾
|
crazyfactory/sniffs
/
README.md
|
|---|
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"
}