chillu/phpmd-silverstripe 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

chillu/phpmd-silverstripe

最新稳定版本:0.1.0

Composer 安装命令:

composer require chillu/phpmd-silverstripe

包简介

Extended mess detection rules from phpmd for SilverStripe applications.

README 文档

README

Build Status

Extended mess detection rules from phpmd for SilverStripe applications. The rules make it easier for developers to comply with the SilverStripe Coding Conventions. It uses mostly standard PHPMD rules, with a few notable changes:

  • Replaced UnusedPrivateField with UnusedInstancePrivateField rule, to check to instance fields only. Unused private statics are by design in SilverStripe.
  • Replaced CamelCasePropertyName with CamelCaseInstancePropertyName rule. Static properties in SilverStripe are snake cased.
  • Removed inflexible checks around camelCase naming conventions

Installation

Global installation for usage across projects:

composer global require --prefer-dist chillu/phpmd-silverstripe

Local installation on an existing project:

composer require chillu/phpmd-silverstripe

Usage

For global installations:

~/.composer/vendor/bin/phpmd <my-project> text ~/.composer/vendor/chillu/phpmd-silverstripe/Rulesets/all.xml

For local installations:

vendor/bin/phpmd <my-project> text vendor/chillu/phpmd-silverstripe/Rulesets/all.xml

For more details, refer to the command line usage guides on phpmd.org.

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-08