chillu/phpmd-silverstripe
最新稳定版本:0.1.0
Composer 安装命令:
composer require chillu/phpmd-silverstripe
包简介
Extended mess detection rules from phpmd for SilverStripe applications.
README 文档
README
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
UnusedPrivateFieldwithUnusedInstancePrivateFieldrule, to check to instance fields only. Unused private statics are by design in SilverStripe. - Replaced
CamelCasePropertyNamewithCamelCaseInstancePropertyNamerule. 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
其他信息
- 授权协议: MIT
- 更新时间: 2015-07-08