Repository navigation
quality: migrate PHPMD to 3.0.0 - #41
Merged
Alexandre-T merged 3 commits intoOct 12, 2026
Merged
Conversation
Upgrade PHPMD configuration and rulesets for improved code quality checks
10 tasks done
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #41 +/- ##
===========================================
Coverage 100.00% 100.00%
Complexity 149 149
===========================================
Files 10 10
Lines 303 303
===========================================
Hits 303 303 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Alexandre-T
force-pushed
the
39-story-assess-phpmd-300-migration-impact-on-geoparser
branch
from
October 12, 2026 13:56
c13a337 to
c70c999
Compare
Alexandre-T
deleted the
39-story-assess-phpmd-300-migration-impact-on-geoparser
branch
October 12, 2026 14:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Related to #39. This PR implements the migration requested by the maintainer; it does not close the separate impact-assessment Story or claim its comparison/report criteria are complete.
Summary
Upgrade PHPMD from
^2.15to^3.0.0using commit37c99c88e5a47fcad0cf85254b82bab255c186b4as the migration baseline. Replace the source and test XML configurations with YAML, and update Composer and GitHub Actions to the PHPMD 3 CLI:The library rules retain unused-code, code-size, naming, controversial and design checks. ShortVariable keeps minimum 3 and the x,y exceptions.
The test rules change as follows:
maximum: 120instead of the formerminimum: 120.Update repository instructions to reflect PSR-4 paths, removal of the Docker environment, protected branches, and the PHPMD 3 configuration. Run CI for pull requests and on the existing weekly schedule, retaining the Markdown/LICENSE exclusions for pull requests. The schedule is
0 17 * * 5(Friday at 17:00 UTC).Acceptance criteria
Validation
0 17 * * 5.Commands run
Standards
Normative references
N/A
Architecture
Architecture decision
N/A
Compatibility
Quality tooling now requires the PHPMD 3 CLI and YAML rulesets.
Documentation
Developer handoff
Important implementation decisions
Commit 37c99c8 supplies the dependency and YAML migration. Amended follow-up commit c70c999 fixes CI commands that still referenced the deleted XML files and aligns the documented PHPMD requirement and weekly schedule. The original scheduler is preserved.
Compatibility considerations
Rule migration is not strictly behavior-preserving: the test naming exclusion and public-method check differ as described above. The codeclimate-ruleset.xml file is unchanged; it is not referenced by Composer quality scripts or this GitHub workflow.
Remaining risks or questions
PHPMD 2 versus 3 metrics, threshold-boundary behavior, performance comparisons, and the consolidated assessment requested by #39 are outside this implementation PR and remain to be documented.