logicbrush/metrics
最新稳定版本:v1.0.0
Composer 安装命令:
composer require logicbrush/metrics
包简介
Examines the clover metrics for the project and will update method Docblocks in the provided source file with `@Metric` annotations.
README 文档
README
A command line utility for making better use of coverage metrics in PHP. Chiefly, allows you to update your source code with docblock annotations that present method coverage/complexity. Use with your CI process to keep your metrics in front of you as you develop.
Installation
composer require --dev logicbrush/metrics
Usage
php ./vendor/bin/metrics annotate «path to coverage.xml» «path to source file»
This will annotate your code with a @Metrics annotation, e.g:
/** * You must have an existing docblock comment on your method for this to work. * We won't add it for you. * * @Metrics( crap = 10.2, uncovered = true ) */ public function someMethod() : void { ... }
统计信息
- 总下载量: 17.13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 7
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2022-11-15