[java] TooManyMethods - improve getter/setter detection (#3729)#3994
Conversation
Generated by 🚫 Danger |
adangel
left a comment
There was a problem hiding this comment.
Thanks for your PR!
Can you have a look at your fix? I don't think it actually fixes the problem... We don't detect too many methods even for your test case, where we have 22 methods...
|
I just noticed that the documentation in https://pmd.github.io/latest/pmd_rules_plsql_design.html still includes the exclusion of get/set/is methods. Could you please update it, too? |
|
@C-Otto The file you mention is about PLSQL - the java version is updated: https://pmd.github.io/latest/pmd_rules_java_design.html#toomanymethods
That's the whole point - exclude getter/setter/methods from the TooManyMethods rule, but keep e.g. getters, that do more (that's the Please create a new issue, if you think, something is wrong. Thanks. |
|
Everything is fine, sorry for the confusion! |
Describe the PR
Add a condition for judging a method as a getter setter
Related issues
Ready?
./mvnw clean verifypasses (checked automatically by github actions)(it goes wrong at disk test)