-
Some rules don't support exceptions. A one-off fix for `UnusedLocalVariable` is awaiting merging (https://github.com/phpmd/phpmd/pull/329), but I think rather than dealing on a case-by-case basis, the…
-
The closest I came was issue https://github.com/phpmd/phpmd/issues/37 but I'm unsure if that request is identical to this one.
We run PHPMD frequently (it's part of a pre-push hook) but it's very inc…
Dynom updated
11 months ago
-
PHPMD sees this:
``` php
function ab() {
return 1;
}
```
and returns:
``` xml
Avoid using short method names like ::ab(). The configured minimum method name length is 3.
```
Using a `@Supp…
-
- PHPMD version: 2.11.0
- PHP Version: 7.4.3
- Installation type: composer
- Operating System / Distribution & Version: Ubuntu 20.04.3 LTS
### Current Behavior
```php
-
I use `phpmd` on 2 computers so I'll like to add a ruleset just by typing `~/.phpmd/naming.xml` Rather than `Users/najela/.phpmd/naming.xml` since my usernames are different in both computers.
-
- 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 …
-
phpmd is not running if the file extension is not php
Drupal has some peculiarities like naming files x.module
We even have https://marketplace.visualstudio.com/items?itemName=marcostazi.VS-code…
-
```
$ phpmd --version
PHPMD 2.3.2
$ phpmd path/to/File.php text design
```
the exit code is 0, but the File.php does contain `var_dump` and `print_r`
and the other features in design are working i …
-
- I am finding that the errors reported by PHPMD in its report are duplicated the first time I run PHPMD - without making any changes to the code or command I run on subsequent runs this duplication d…
-
I have followed the docs and believe this is setup correctly. I am using PHPMD 2.6.0. Basically I have the following class:
```php
class ContractAdmin extends ModelAdmin
{
/**
* @Suppr…