Single Parameter or Field Per Line
WarningClean ABAP & Modern Syntax#EC PREF_PARAM_1LINERemote Enabled
Overview
Parameters and structure fields must be on separate lines.
ATC Finding Message:
Multiple parameters or fields on the same line; place each on a separate line
Rationale
When passing multiple parameters in method calls or constructor expressions, place each parameter or field on its own separate line.
Non-Compliant
abap
ls_data = VALUE #( a = 1 b = 2 ).Compliant
abap
ls_data = VALUE #(
a = 1
b = 2 ).Suppression
To suppress findings for this rule, append the pseudo-comment to the statement:
abap
" Standard pseudo-comment:
... "#EC PREF_PARAM_1LINE
" SAP CI_ prefix format:
... "#EC CI_PREF_PARAM_1LINERelated Rules
- Avoid Consecutive Whitespace Between Tokens —
#EC NO_DOUBLE_SPACE - Limit Method and Constructor Statement Length —
#EC MAX_METHOD_LEN
Technical Details
- Native ATC Class:
ZCL_SKYLINT_PREF_PARAM_1LINE - Implementation File: zcl_skylint_pref_param_1line.clas.abap