Field Declarations Should Be At Start

< 1 min read

Impact area

Manageability

Severity

Medium

Affected element

Apex Class

Rule ID #

SF-DECL-AT-START

Impact #

Increase the effort needed to read and understand source code.

Remediation

Field declarations should appear before method declarations within a class.

Time to fix #

10 min

References #

This rule is linked to FieldDeclarationsShouldBeAtStart

Updated on March 21, 2025
Was it helpful ?