rasta / sniffs
Rapid Agile Software默认代码风格,用于与Squizlabs的代码检查器一起使用。
1.0.0
2020-03-20 09:06 UTC
Requires
- symplify/easy-coding-standard: ^2.2.0
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-09-20 19:09:36 UTC
README
Rapid Agile Software默认代码风格,用于与Squizlabs的codesniffer和PHPCSFixer一起使用。
安装
- 在项目根目录下创建一个名为
easy-coding-standard.neon
的文件,至少包含以下内容
includes: - vendor/rasta/sniffs/easy-coding-standard.neon
- 运行
composer require-dev rasta/sniffs
43 在 composer.json
中添加一个代码检查命令
"scripts": {
"lint": "ecs check src cron tests --clear-cache",
"lint:fix": "ecs check src cron tests --clear-cache --fix"
}