phpmd icon indicating copy to clipboard operation
phpmd copied to clipboard

PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD. PHPMD can be seen as an user friendly frontend application for the raw metrics stream measure...

Results 186 phpmd issues
Sort by recently updated
recently updated
newest added

- PHPMD version: 2.12.0 - PHP Version: 8.0, 8.1 - Installation type: composer, in docker image - Operating System / Distribution & Version: Alpine, ubuntu 20.04 ### Current Behavior Unexpected...

Bug

https://github.com/phpmd/phpmd/pull/232 adds a ruleset with a references to http://files.addiks.de/xmlns/phpmd.xsd and http://www.addiks.net/xmlns/pmd. These are unavailable, so there is no way to validate the XML against the XSD. Does anybody know what...

Bug
Question
Configuration

## Description Best practice says to use static code analysis on tests as well. But in many cases certain rules should be ignored. For example if we are using `codeception`...

- PHPMD version: 2.9.1 - PHP Version: 8.1.1 - Installation type: Phive - Operating System / Distribution & Version: Alpine 3.15 ### Current Behavior When I declare a namespace in...

Type: feature Breaking change: no This renders violations for use with GitHub Check Runs Annotations. More at: https://docs.github.com/en/rest/checks/runs#create-a-check-run

Feature
CLI
Output
Needs Tests
Needs Documentation

- PHPMD version: 2.11.1 - PHP Version: 8.1.1 - Installation type: composer - Operating System / Distribution & Version: Ubuntu 20.04 ### Current Behavior Run phpmd on a file using...

Compatibility
php8.1

- PHPMD version: 2.8.2 - PHP Version: 8.0.10 - Installation type: composer - Operating System / Distribution & Version: Ubuntu 20.04.3 LTS (Focal Fossa) ### Current Behavior A warning for...

- PHPMD version: 2.10.1 - PHP Version: 7.3.27 - Installation type: composer - Operating System / Distribution & Version: Ubuntu 20.04 LTS ### Current Behavior phpmd stops with `Unexpected end...

Bug

- PHPMD version: >= 2.8 - PHP Version: 7.4 - Installation type: phar - Operating System / Distribution & Version: Windows 10 ### Current Behavior ```sh php phive.phar install phpmd/[email protected]...

Bug
Build scripts
PHAR

Type: bugfix Breaking change: no Previously this would often fail on usage of sprintf() and other function that takes variadic parameters.

Bug
Needs Tests