rspec/rules/S1820/rule.adoc

8 lines
378 B
Plaintext
Raw Permalink Normal View History

== Why is this an issue?
A class that grows too much tends to aggregate too many responsibilities and inevitably becomes harder to understand and therefore to maintain, and having a lot of fields is an indication that a class has grown too large.
Above a specific threshold, it is strongly advised to refactor the class into smaller ones which focus on well defined topics.