smile/magento2-smilelab-phpmd

PHPMD ruleset for Magento projects.

Installs: 68 690

Dependents: 1

Suggesters: 0

Security: 0

Stars: 4

Watchers: 8

Forks: 0

Open Issues: 0

pkg:composer/smile/magento2-smilelab-phpmd

2.0.2 2025-04-09 16:15 UTC

This package is auto-updated.

Last update: 2025-09-09 17:12:34 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