magento / magento/magento-coding-standard

Migrate Magento PHMD ruleset

Open
#161 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

proposal
Dominant language
PHP
Stars
375
Forks
165
PR merge metrics
No merged PRs in 30d

Description

### Rule
Same rules as https://github.com/magento/magento2/blob/2.3.4/dev/tests/static/testsuite/Magento/Test/Php/_files/phpmd/ruleset.xml

### Reason
Running phpmd without requiring a full installation of Magento makes it easier to run the mess detection in isolation

### Implementation
Provide a copy of the Magento phpmd ruleset in this repository

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the Magento 2.3.4 ruleset at the linked dev/tests/static/testsuite/Magento/Test/Php/_files/phpmd/ruleset.xml and locate the corresponding ruleset location in this repository. Done means the same PHPMD rules are available here without requiring a full Magento installation.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
tooling
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.