Marc Würth
Marc Würth
@heiglandreas in your PSR-15 example, it would take one line to suppress the warning. I agree, sometimes, like in your example, you simply don't need all or any parameter. But...
By the way, this issue was previously discussed in the following issues: https://github.com/phpmd/phpmd/issues/24 https://github.com/phpmd/phpmd/issues/50 https://github.com/phpmd/phpmd/issues/180 Also, there is a fugly workarouond with the ``@inheritdoc`` annotation: https://github.com/phpmd/phpmd/commit/d033354f43bfac5b06146c20cb2ef0aff9196ada#src/main/php/PHP/PMD/Rule/UnusedFormalParameter.php
How about we add a ``ignored_interfaces`` (or similar) property? With that, one could either ignore full classes/interfaces, methods of a single class/interface or methods of any class/interface by name For...
@kylekatarnls I would be OK to add a property to ignore certain classes or methods. > How about we add a `ignored_interfaces` (or similar) property? > > With that, one...
I or one of my colleagues are going to open a PR for my proposed ignore/exception list property.
There is a property named `ignore-whitespace` to ignore the whitespace. https://phpmd.org/rules/codesize.html Another property for ignoring the doc blocks or all comments in general could be useful for some, I guess.
:+1:
@r0w4n feel free to create a PR with a rule named like `NestedTenary` under the Design Rules which implements this
> http://pmd.sf.net/ This is not PHP Mess Detector's but Java's Mess Detector's (the original) Website.