This is no longer supported
Extends phpmd with rules for BTC applications. Also add extra rules from clean code.
- Clean Code
- ClassNameSingleResponsibility
- MethodOneTryCatch
- SuperfluousComment
- InlineIf
- MeaninglessMethodName
- TraitPublicMethod
- SwitchStatement
- Symfony
- ControllerMethodName
- EntitySimpleGetterSetter
- EntityConstants
- ConstructorNewOperator
Open a command console, enter your project directory and execute the following command to download the latest stable version:
composer require --dev btc/phpmd-rulesetsOR
Composer is used for installation. Add the following lines to your composer.jon file:
"require-dev": {
"btc/phpmd-rulesets": "^1.0"
}Use grumphp and configure phpmd task with the following lines in your grumphp.yml
phpmd:
exclude: ['vendor']
ruleset: ['/vendor/btc/phpmd-rulesets/Rulesets/symfony.xml', '/vendor/btc/phpmd-rulesets/Rulesets/cleancode.xml']
triggered_by: [php]