Skip to content

Feature request - multiple ABAP statements in one line to multiple lines #316

Closed

Description

@matthewdjb

I'm editing a lot of legacy code, and the former developer had a habit of putting multiple statements on one line.

E.g.
IF sy-subrc IS INITIAL. RETURN. ENDIF.

It is covered in the Clean Code Style Guide.
"No more than one statement per line"

It would be good if abap-cleaner could detect this situation and put the statements each on their own line.

Activity

  1. jmgrassau commented on Jun 11, 2024

    @jmgrassau
    Member

    Hi Matthew,

    yes, absolutely!

    Kind regards,
    Jörg-Michael

  2. matthewdjb commented on Jun 11, 2024

    @matthewdjb
    Author

    Just for your information - I do write Eclipse plug-ins linking to ADT, so I might be able to contribute from time to time. :-)

  3. self-assigned this
    on Sep 27, 2025
  4. jmgrassau commented on Sep 29, 2025

    @jmgrassau
    Member

    Hi Matthew,

    thanks again for this idea! The new cleanup rule "Move commands to own lines" is now available with version 1.22.0, which was just released!

    Kind regards,
    Jörg-Michael

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions