I would like to get a PMD rule violation only if two rules (NcssMethodCount and NPathComplexity) fail at the same time for a given method, for example if NcssMethodCount > 50 AND(!) NPathComplexity > 16.
So I am only interested in long methods that are also quite complex to understand. I would like to filter out the long but easy methods.
In general can I construct complex rules by making use of or combining (and'ing) multiple existing rules?
Maybe by using rules with XPath syntax or implementing a custom rule class? I don't really know, I am quite beginner PMD user...
Thank you!
Regards,
Csaba
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello guys,
I would like to get a PMD rule violation only if two rules (NcssMethodCount and NPathComplexity) fail at the same time for a given method, for example if NcssMethodCount > 50 AND(!) NPathComplexity > 16.
So I am only interested in long methods that are also quite complex to understand. I would like to filter out the long but easy methods.
In general can I construct complex rules by making use of or combining (and'ing) multiple existing rules?
Maybe by using rules with XPath syntax or implementing a custom rule class? I don't really know, I am quite beginner PMD user...
Thank you!
Regards,
Csaba