abap-cleaner icon indicating copy to clipboard operation
abap-cleaner copied to clipboard

"Align METHODS declarations": Removal of spaces between `TYPE` and type name

Open ConjuringCoffee opened this issue 2 years ago • 1 comments

Hi Jörg-Michael, rule "Align METHODS declarations" doesn't remove superfluous spaces between TYPE and the type name. Would it be possible to add this?

Example:

CLASS lcl_example DEFINITION CREATE PRIVATE.

  PUBLIC SECTION.
    METHODS call_example
      IMPORTING
        i_1 TYPE                         i
        i_2 TYPE i.
ENDCLASS.

Expected:

CLASS lcl_example DEFINITION CREATE PRIVATE.

  PUBLIC SECTION.
    METHODS call_example
      IMPORTING
        i_1 TYPE i
        i_2 TYPE i.
ENDCLASS.

(Or maybe this is already covered by another rule and I just missed it? 🙂)

ConjuringCoffee avatar Nov 21 '23 09:11 ConjuringCoffee

Hi ConjuringCoffee,

very sorry for responding only now! Yes, you're right, such spaces are not yet removed by "Align METHODS declarations" – but they should!

Kind regards, Jörg-Michael

jmgrassau avatar May 30 '24 11:05 jmgrassau