You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code is not changed at all by ABAP cleaner
TYPES:
BEGIN OF ENUM cost_distribution BASE TYPE vrtkz,
not_distributed VALUE IS INITIAL,
by_quantity VALUE '1',
by_percentage VALUE '2',
by_amount VALUE '3',
END OF ENUM cost_distribution.
It would make sense that ABAP Cleaner aligns the VALUE parts of ENUMs, for instance as shown below
TYPES:
BEGIN OF ENUM cost_distribution BASE TYPE vrtkz,
not_distributed VALUE IS INITIAL,
by_quantity VALUE '1',
by_percentage VALUE '2',
by_amount VALUE '3',
END OF ENUM cost_distribution.
good point, thanks for the suggestion! Let me set a "new option" label for now, but we'd have to check whether this should be a new option to the "Align declarations" rule or rather a new cleanup rule.
Activity
jmgrassau commentedon Nov 11, 2023
Hi Kjetil,
good point, thanks for the suggestion! Let me set a "new option" label for now, but we'd have to check whether this should be a new option to the "Align declarations" rule or rather a new cleanup rule.
Kind regards,
Jörg-Michael
jmgrassau commentedon Dec 30, 2023
Hi Kjetil,
thanks again for opening this! With the next release, the "Align declarations" rule will have this new option:
Example:
Existing one-liners are kept …
… unless they come with VALUEs:
Kind regards,
Jörg-Michael
enhance AlignDeclarationsRule for enumerations (SAP#194)
enhance AlignDeclarationsRule for enumerations (#194)
jmgrassau commentedon Jan 5, 2024
Hi Kjetil,
thanks again for pointing this out – alignment of ENUMs should now work with version 1.13.0!
Kind regards,
Jörg-Michael