Circul8 coding standards and dot files.
composer require slevomat/coding-standard --dev
Add two scripts there, lint
& lintfix
:
{
"require-dev": {
"slevomat/coding-standard": "^5.0"
},
"scripts": {
"lint": [
"vendor/bin/phpcs --standard=ruleset.xml"
],
"lintfix": [
"vendor/bin/phpcbf --standard=ruleset.xml"
]
}
}
wget -nv https://raw.githubusercontent.com/circul8/coding-standards/master/.editorconfig
wget -nv https://raw.githubusercontent.com/circul8/coding-standards/master/phpcs.xml
Edit ruleset.xml
if necessary.