phpmd / phpmd

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 measured by PHP Depend.

Home Page:https://phpmd.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add rulename to violation

tebeso opened this issue · comments

commented

It would be good to immediately see which rule has been violated (like with PHPCS). If i want to use @SuppressWarnings, i usually have to find out, what is the rules name. With PHPCS, i always get that in the report (and also in PhpStorm)

Hello @tebeso how do you mean that?

If I run PHPMD I see the rule name, example:
image

BooleanArgumentFlag, CyclomaticComplexity, StaticAccess and ElseExpression are all the rules that you can Surpress if wanted.

I think that I don't understand your question or it is already there 😃

This could be down to a deficiency in the way PHPStorm has intergrated it

I think we need to know how the result is collected / parsed before we know what need to be added to give the additional support for PHPStorm.

commented

I suspect this issue was issue for a version before rule name was added.

Anyway it's not actionable as is, so I close it, another one specifying the version the code used, current output and expected output would be evaluated if created.