btc / phpmd-rulesets
Exetnded mess detection rules from phpmd for BTC applications.
Installs: 1 921
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
Requires
- phpmd/phpmd: ^2.5
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.0
- jakub-onderka/php-parallel-lint: ^0.9.2
- leaphub/phpcs-symfony2-standard: ^2.0
- mockery/mockery: ^0.9.7
- nikic/php-parser: ^3.0
- phpro/grumphp: ^0.11.1
- phpunit/phpunit: ^5.7
- sebastian/phpcpd: ^2.0
- symfony/process: ^3.2
This package is auto-updated.
Last update: 2020-01-29 09:58:16 UTC
README
This is no longer supported
BTC\PHPMD-Rulesets
Features
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
Installation
Open a command console, enter your project directory and execute the following command to download the latest stable version:
composer require --dev btc/phpmd-rulesets
OR
Composer is used for installation. Add the following lines to your composer.jon
file:
"require-dev": { "btc/phpmd-rulesets": "^1.0" }
Usage
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]