Description
There is a few observed issues:
-
The vendor bin is fixed so using the vendored_phpmd_path - Path to a vendored phpmd binary option has no effect. This can obviously be worked around by just ensuring composer is run from the root of the project, but this option should either be removed or fixed so it works.
-
the order of arguments is submitted wrong to phpmd:
I am able to replicate this message by running phmd directly:
vendor/bin/phpmd server phpmd.xml github
Can't find the custom report class: phpmd.xml
If the order of the parameters is changed the problem is resolved:
$ vendor/bin/phpmd server/module/Application/src/Application/ text phpmd.xml
..... \server\module\Application\src\Application\Controller\ControllerListenerFactory.php:21 UnusedFormalParameter Avoid unused parameters such as '$requestedName'.
The order appears to require to be: binary, path, report format, ruleset or file
Version of phpmd:
PHPMD 2.15.0