Avoid ALIASES in Classes and Interfaces
WarningClean ABAP & Modern Syntax#EC NO_ALIASESRemote Enabled
Overview
Avoid using ALIASES in classes and interfaces.
ATC Finding Message:
Do not use ALIASES; reference interface components explicitly
Rationale
ALIASES obscure component origins and interface contracts. Explicitly reference interface components using the interface~member syntax.
Non-Compliant
abap
ALIASES run FOR lif_demo~run.Compliant
abap
lif_demo~run( ).Configuration & Thresholds
This check can be fine-tuned directly in the ATC Check Variant Editor (CHKV) in Eclipse ADT:
| Parameter Name | Data Type | Default Value | Description & Guidance |
|---|---|---|---|
IGNORE_PRIVATE | Boolean | false | Ignore ALIASES in private sections (defaults to false) |
Suppression
To suppress findings for this rule, append the pseudo-comment to the statement:
abap
" Standard pseudo-comment:
... "#EC NO_ALIASES
" SAP CI_ prefix format:
... "#EC CI_NO_ALIASESRelated Rules
- Prefer Interface Segregation (Small, Focused Interfaces) —
#EC PREF_INTF_SEGREG - Avoid Concrete Class References in Interfaces —
#EC NO_INTF_CLASS_REF
Technical Details
- Native ATC Class:
ZCL_SKYLINT_NO_ALIASES - Implementation File: zcl_skylint_no_aliases.clas.abap