abap-cleaner
abap-cleaner copied to clipboard
Single line TYPES: statements do not always have the colon removed
Single line TYPES: statements do not always have the colon removed
For example
TYPES: BEGIN OF ty_test.
INCLUDE TYPE mara.
TYPES: a_field TYPE abap_bool.
TYPES: END OF ty_test.
The colons are not removed after keyword TYPES.
Hi Matthew,
this is intentional – ABAP cleaner would be fine without colons as well …
TYPES BEGIN OF ty_test.
INCLUDE TYPE mara.
TYPES a_field TYPE abap_bool.
TYPES END OF ty_test.
… but if someone then uses PrettyPrinter on this, you get:
TYPES BEGIN OF ty_test.
INCLUDE TYPE mara.
TYPES a_field TYPE abap_bool.
TYPES END OF ty_test.
This doesn't happen with colons, and that's why in this special case, ABAP cleaner keeps the colons.
Kind regards, Jörg-Michael