smile/magento2-smilelab-phpmd

PHPMD ruleset for Magento projects.

2.0.1 2023-04-11 08:27 UTC

This package is auto-updated.

Last update: 2024-05-12 11:04:13 UTC


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