chrometoaster/backend-coding-standards
Composer 安装命令:
composer require chrometoaster/backend-coding-standards
包简介
Back-end coding standards configuration used at Chrometoaster.
README 文档
README
Back-end coding standards used at Chrometoaster are based on PSR-2.
This project bundles tools along with predefined rulesets for automated checks. Provided tools:
- PHP-Parallel-Lint
- EasyCodingStandard that combines PHP-CS-Fixer and PHP_CodeSniffer
Installation & usage
-
Install this package:
$ composer require --dev chrometoaster/backend-coding-standards:~1.0 -
Include a configuration file in your
easy-coding-standard.yml:imports: - { resource: '%vendor_dir%/chrometoaster/backend-coding-standards/config/chrometoaster.yml' }
-
Check your files
$ vendor/bin/parallel-lint /path/to/source/code $ vendor/bin/ecs check path/to/source/code
-
Auto-fix non-compliant files where possible
$ vendor/bin/ecs check path/to/source/code --fix
See the official documentation of the tools used for further information, e.g. how to provide a custom config.
Licence
BSD-3-Clause
统计信息
- 总下载量: 1.76k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 7
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2019-07-05