承接 geshan/pdepend-analyzer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

geshan/pdepend-analyzer

Composer 安装命令:

composer require geshan/pdepend-analyzer

包简介

Pdepend Analyze is a command line tool that analyzes the summary xml file generated by PHP Depend like cyclomatic complexity and N-Path complexity

README 文档

README

Build Status

Pdepend Analyze is a command line tool that analyzes the summary xml file generated by Pdepend. For now it shows the methods that have the highest Cylcomatic Complexity and N-Path Complexity in the Pdepend summary XML file generated for any given code base. There is a pdepend process command line tool that formats the Pdepend summary xml as HTML, its very useful. This command line tool can be used as part of the tests or even as a pre-commit hook to lower down the software complexity.

Prerequisites

This library needs PHP 5.4+.

It has been tested using PHP 5.4 to PHP 5.6.

Installation

You can install the library directly with composer:

"geshan/pdepend-analyzer": "0.1.0"

Usage

To you this command line tool, you will need to generate your code metrics using PDepend with command like below:

 ᐅ phpdepend --summary-xml=/tmp/summary.xml /path/to/your/src

For more information about Pdepend refer to its docs.

After you have your summary.xml file with the software metrics of your code base you can run the pdepend-analyzer in in the following ways:

Run analyze with default params

 ᐅ ./pdepend-analyze --file=tests/Pdepend/Fixtures/summary.xml

Run analyze with custom params

 ᐅ ./pdepend-analyze --file=tests/Pdepend/Fixtures/summary.xml  --cyclomatic-complexity-limit=2 --npath-complexity-limit=5

Screen shot of usage with custom params

Pdepend Analyzer Screenshot

Tests

PHPUnit is used to test the command line tool. You will need composer to get the dependencies. To run tests locally, execute the following commands in project root:

 ᐅ composer install --prefer-source
 ᐅ ./vendor/bin/phpunit --configuration phpunit.xml --bootstrap vendor/autoload.php

Feedback

Add an issue, open a PR, drop us an email! We would love to hear from you!

统计信息

  • 总下载量: 277
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-10-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固