方法中长度超过某些参数的 Apex PMD 规则

Apex PMD rule for length exceeding certain parameters in methods

如果行数超过 PMD 中的某个参数,是否已经存在任何自定义顶点规则?

已经有多个顶点规则,请参阅:https://pmd.github.io/latest/pmd_rules_apex.html . The ones you look for are probably in the category design. You could use ExcessiveClassLength which simply counts the lines. There is also NcssTypeCount,它只计算语句,例如忽略评论。

交叉发布https://sourceforge.net/p/pmd/discussion/188194/thread/c38c328d36/?limit=25