-
We should exclude `web/Request.php` from the PHPMD super-global test.
It is our single point of entry into `$_SERVER` so it is needed and the test just creates noise.
-
All the links on the readme point to php code sniffer instead of php mess detector
-
- PHPMD version: 2.13.0
- PHP Version: 8.0.23
- Installation type: phive
- OS: Linux Alpine 3.15
### Current Behavior
phpmd craches with the error "Unexpected token: (, ..."
### Expected B…
-
It would be great if the extension detected the existence of a ruleset in some known path, e.g. `phpmd_config.xml` without the need to specify `phpmd.rules": "C:/path/to/phpmd_config.xml` explicitly.
…
-
Here is the output I get:
```
$ ./vendor/bin/phpmd src text cleancode
/Users/joepurcell/src/github.com/josephdpurcell/phpmd-phpnsc-comparison/src/Controller/Spaceship.php:12 Missing class impo…
-
That's what says PHPMD. It will be nice to skip checking consts on interfaces.
-
### Bug report
In addition to using `phpstan`, I am using `phpmd` to profile my code.
`phpmd `supports directives like
```php
/*
* @SuppressWarnings(PHPMD.UnusedLocalVariable)
*/
```
in the…
-
I get a lot of errors in the phpmd log.
It seems to be related to trying to run PHPMD on non-php files or non-existing files (like git diffs, temporary files, etc).
Here is an example of what my…
-
https://github.com/phpmd/phpmd/blob/08a38d44da7865b7938dd6da860c2f44ac19b002/src/main/php/PHPMD/Rule/Design/NumberOfChildren.php#L39
It basically ends up looking like this in the ruleset xml file:
…
-
### Feature Request
Make it possible to detect if methods, or a set of methods, within a given class or namespace exceed a limit of lines. The background is that we would like to prevent having con…