smile / magento2-smilelab-phpmd
PHPMD ruleset for Magento projects.
Installs: 55 966
Dependents: 1
Suggesters: 0
Security: 0
Stars: 4
Watchers: 9
Forks: 0
Open Issues: 0
Requires
- php: ^7.4 || ^8.0
- magento/framework: *
- magento/module-checkout: *
- phpmd/phpmd: ^2.0
Requires (Dev)
- phpstan/phpstan: ^1.8
- squizlabs/php_codesniffer: ^3.7
README
Description
This ruleset is meant to be used on Magento projects and modules.
Custom rules are copied from https://github.com/magento/magento2/tree/2.4.5/dev/tests/static/framework/Magento/CodeMessDetector.
Installation
To use this ruleset, require it in composer:
composer require --dev smile/magento2-smilelab-phpmd
Usage
You can run phpmd with this command:
php vendor/bin/phpmd [src folder] text vendor/smile/magento2-smilelab-phpmd/ruleset.xml