Skip to content

Metrics & Complexity Limits (10 Rules) ​

Quantitative boundaries for method size, nesting depth, parameter counts, and cyclomatic complexity.

Category Overview

This category enforces 10 native ATC rules adhering to SAP Clean ABAP and ABAP Cloud standards. Each check executes natively inside Eclipse ADT and SAP GUI.

Rules in this Category ​

Rule NameNative ATC ClassSuppression TagAutomated QuickFix
Limit Method Parameter Count and Require Multi-Line SignaturesZCL_SKYLINT_MAX_PARAMS#EC MAX_PARAMS_COUNT-
Limit Method and Constructor Statement LengthZCL_SKYLINT_MAX_METHOD_LEN#EC MAX_METHOD_LEN-
Limit Control Flow Nesting Depth (Guard Clause Enforcement)ZCL_SKYLINT_MAX_NESTING#EC MAX_NESTING-
Limit Cyclomatic Complexity (McCabe Complexity Metric)ZCL_SKYLINT_MAX_CYCLO_COMP#EC MAX_CYCLO_COMP-
Limit Class Inheritance Depth (Favor Composition over Inheritance)ZCL_SKYLINT_MAX_INHERIT#EC MAX_INHERIT-
Limit Class Member Attribute Count (Prevent God Classes)ZCL_SKYLINT_MAX_ATTRIBUTES#EC MAX_ATTRIBUTES-
Limit One Statement per Source Code Line (No Inline Colon Chains)ZCL_SKYLINT_MAX_ONE_STMT#EC MAX_ONE_STMT-
Limit Source Code Line Length (Avoid Horizontal Scrolling)ZCL_SKYLINT_MAX_LINE_LEN#EC MAX_LINE_LEN-
Limit Boolean Expression Complexity in Conditional StatementsZCL_SKYLINT_MAX_BOOL_EXPR#EC MAX_BOOL_EXPR-
Limit Multiple Return Statements per Method BodyZCL_SKYLINT_MAX_RETURNS#EC MAX_RETURNS-

← Back to All Rules Catalog

Released under the MIT License.