We are using the source code analyzer PMD in our Java project. I am trying to resolve the reported issues and I am currently struggling with the GodClass
rule. I know that the idea is not to create huge classes.
However, I don't like the word "huge" because it's too vague. Can anybody explain how the metrics of this rule works? The report says e.g.
Possible God class (WMC=47, ATFD=11, TCC=0.06315789473684211)
What do all these numbers mean? Does anybody know the formula that decides whether a particular class is huge or not?
Javadoc to this rule states
The rule uses the detection strategy described in [1]. The violations are reported against the entire class. [1] Lanza. Object-Oriented Metrics in Practice. Page 80.
Well, I don't wont to order some book just because of its page 80.
Btw. is there a way to configure such rule, i.e. change its parameters?
Thanks for explanation.