Skip to Content
6
Jan 07, 2022 at 01:23 PM

AdT Code formater to help towards cleanABAP (empty lines, and other line-wasting) ?

442 Views Last edit Jan 21, 2022 at 09:47 AM 5 rev

Is there an AdT-code formater (linter?) that goes beyond what shift+f1 does?!

What I would want it do do is stuff like this (which I as of now do by hand):

- If more than 1 empty line: replace those with exactly 1 empty line.

- Don't wast space in method definitions (this is how quick assists generates it)

*    METHODS do_something_xy
*      IMPORTING
*        iv_param TYPE abap_bool.
    METHODS do_something_xy IMPORTING iv_param TYPE abap_bool.

- don't waste a full line with only . and/or )

*    lref_report->do_something_xy( iv_param = abap_true
*                        ).
    lref_report->do_something_xy( iv_param = abap_true ).