Compatibility with phpmd 3.x
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 4.3k
- Forks
- 450
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
phpmd 2.x is not compatible with php 8.5. The phpmd maintainers recommend to use the 3.x-dev branch instead.
Unfortunately, GrumPHP is not compatible with this branch because the phpmd command was overhauled.
I might be able to provide a PR that adds support for this version, but I'm wondering how to implement it:
- Option 1: keep the current phpmd task untouched, add a new task for 3.x (what would be the name?)
- Option 2: refactor the current phpmd task to support both phpmd 2.x and 3.x (how to consistently detect the version? maybe an config option?)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the existing phpmd task and how it invokes the phpmd command, then compare those assumptions with the phpmd 3.x command described in the issue. Decide whether one task can support both versions or a separate task is needed; done means GrumPHP works with phpmd 2.x and 3.x.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100