-
Hi, I'm faccing a problems here, I'm trying to understand this a long time.
I use gvim for a long time, but I'm trying to change to nvim, but since them I try to use Ale on nvim and I couldn't see …
-
phpmd says:
```
Avoid unused local variables such as '$link'.
```
Which might be correct for the method:
```
function foo($link) {
require 'bar.phtml';
}
```
But is used in the template `bar.p…
-
- PHPMD version: 2.8.2
- PHP Version: 7.3.17
- Installation type: composer
- Operating System / Distribution & Version:
I am running phpmd in a Azure DevOps pipeline using a ubuntu image, and I…
-
There are five references to the super-global $_SERVER variable. This is being flagged in CodeClimate by the PHPMD tool, saying:
```
Accessing a super-global variable directly is considered a bad …
-
As an example of clean code : https://phpmd.org/rules/cleancode.html#elseexpression
It tries to stop a lot of `if`/`else` statements. Since they can be resolved by early returns from a function. I …
-
At the moment, we have:
- ShortVariable: Detects when a field, local, or parameter has a very short name.
- LongVariable: Detects when a field, formal or local variable is declared with a long name.…
-
From the read the following example is available as a ruleset:
`
This class has too many methods, consider refactoring it.
`
It seems it is a phpmd report file ran at…
-
Often, functions that receive a set of parameters as a callback or similar. If the code then uses one of the later parameters (but not the first one), an UnusedFormParameter is thrown but there's noth…
-
- PHPMD version: 2.9.1
- PHP Version: 7.4.10
- Installation type: composer
- Operating System / Distribution & Version: Windows 10 / Linux
### Current Behavior
I'm trying to use exclude-pattern…
-
Hi! I'm the creator of [Wtyd/githooks](https://github.com/Wtyd/githooks). It's an app based on Laravel Zero for managin QA tools and git hooks. I want to make a new feature to run the tools in parall…