View Categories

Avoid Constructors With Excessive Lines of Code Count

Table of Contents
Impact Area

Manageability

Severity

Medium

Affected Element

Apex Class

 

Rule ID #

SF-0012

Impact #

Excessive LoC Count on a constructor indicate that it is burdened with too many responsibilities.

Remediation #

Use a builder or factory pattern to create your objects.

Time to fix

45 min

Powered by BetterDocs