zajda / coding-standards
There is no license information available for the latest version (v1.0.4) of this package.
Coding standards for Zajda projects
v1.0.4
2020-06-18 10:30 UTC
Requires
- php-parallel-lint/php-parallel-lint: ^1.2
- phpmd/phpmd: ^2.8
- slevomat/coding-standard: ^6.3
- squizlabs/php_codesniffer: ^3.5
README
Run command
composer require zajda/coding-standards --dev
Add scripts to composer.json
"scripts": {
"zajda-cs": "php vendor/squizlabs/php_codesniffer/bin/phpcs --standard=vendor/zajda/coding-standards/phpcs_ruleset.xml --extensions=php --encoding=utf-8 -sp src tests",
"zajda-cbf": "php vendor/squizlabs/php_codesniffer/bin/phpcbf --standard=vendor/zajda/coding-standards/phpcs_ruleset.xml --extensions=php --encoding=utf-8 -pv src tests",
"zajda-md": "php vendor/phpmd/phpmd/src/bin/phpmd src,tests text vendor/zajda/coding-standards/phpmd_ruleset.xml --extensions=php",
"zajda-lint-php": "php vendor/php-parallel-lint/php-parallel-lint/parallel-lint src tests",
"zajda-standards": [
"@zajda-lint-php",
"@zajda-cs",
"@zajda-md"
]
}
Inspired by xemel/code-standards
Thank XeMeL team especially Jakub Dolba for the creation the code standards.