Back

LL066

Large class

Object Pascal — Delphi & Free Pascal
Warning
Design

Classes with more than 30 methods likely violate the single responsibility principle

classes with more than 30 methods likely violate the single responsibility principle.

Why this severity

classes with more than 30 methods likely violate the single responsibility principle.


Known false positives

facade classes that intentionally aggregate many delegating methods.

Remediation example

// Split TOrderManager into:
// TOrderValidator, TOrderPricer, TOrderPersistence

Reconnecting… Connection lost. Reload