Repository navigation
ci: run PHPMD 3.0.0 with its analyze command - #165
Conversation
setup-php now installs PHPMD 3.0.0 (2026-10-04), which replaces the positional CLI with the analyze command. The old invocation fails with 'Command "." is not defined', writes no SARIF, and the upload step fails. Pin 3.0.0 and use analyze with the same ruleset and SARIF report; locally it gives the same results as 2.15.0 on main (0).
Test in WordPress PlaygroundTest the plugin with the code from this branch:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #165 +/- ##
=========================================
Coverage 96.42% 96.42%
Complexity 806 806
=========================================
Files 36 36
Lines 4256 4256
=========================================
Hits 4104 4104
Misses 152 152
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
setup-php now installs PHPMD 3.0.0 (released 2026-10-04), which replaces the positional CLI with the
analyzecommand. The current invocation fails withCommand "." is not defined, writes no SARIF, and the upload step fails (seen on #56).mainlast passed on 2026-10-03 and will fail on its next run.phpmd:3.0.0so a future major does not break the scan silently.phpmd analyze . --format sarif --ruleset phpmd.xml --reportfile-sarif …, same ruleset and report.The job already runs on PHP 8.5, so no
php-versionchange is needed (PHPMD 3 needs 8.1+).Verification: on
main, PHPMD 3.0.0analyzeand 2.15.0 with the old CLI both produce 0 results with this ruleset;actionlintis clean.Same fix as exelearning/omeka-s-exelearning#66.