mlukaszewski/feathers_square

PHP的Feathers Square

1.0.0-RC1 2017-09-05 10:55 UTC

This package is not auto-updated.

Last update: 2024-09-26 07:37:40 UTC


README

这是对blerou工作的分支。

完成

  • 修改了PDepend源代码 - PEAR只提供1.1.14版本,现在将使用2.5.0版本(具有PHP7支持)。
  • 添加了-ignore选项(用于PDepend)

待办事项

  • 将PDepend作为PHP栈的一部分执行,而不是外部进程。
  • 修复单元测试,编写新的测试(目标:覆盖所有API)

安装(使用composer)

composer create-project mlukaszewski/feathers_square

有意义的度量指标

此工作基于Turbulence

基于Michael Feathers在项目周转和复杂性方面最近工作的快速修改

使用方法

	bin/turbulence_php -repo=/path/to/git/project -out=/tmp/output

它需要取/存储库,计算类/文件更改以及某些类型的复杂性,然后在/下创建out.json文件(它包含JSON格式的原始数据)。

	bin/turbulence_php -repo=/path/to/git/project -out=/tmp/output -path=src

当存在-path参数时,仅处理src/下的文件(类)。

如果一切顺利,将在输出下生成viewer.html(/)。它没有外部依赖,所以只需用您喜欢的浏览器启动即可。

	google-chrome /tmp/output/viewer.html

示例

让我们创建Twig模板引擎的度量指标

	git clone git://github.com/blerou/turbulence.php.git
	git clone git://github.com/fabpot/Twig.git
	turbulence.php/bin/turbulence_php -repo=Twig -out=/tmp/Twig -path=lib
	google-chrome /tmp/Twig/viewer.html

依赖

它使用PDepend来计算复杂性。

使用composer安装此依赖

composer install