Skip to content

"Standardize empty lines within methods" deletes lines when applied but let them live in profile settings #195

Description

@VladGhitulescu

Hey,

I have a problem with the rule "Standardize empty lines within methods" deleting lines in code when the ABAP Cleaner runs - the same code behaves different when pasted in the configuration window.

Here is the code in the configuration window:

CleanShot 2023-11-10 at 13 24 42

I'd like to preserve the 2 empty lines (row-nr. 4 and 5) between DATA and the FREE-statement so I set the "Max. empty lines within methods"-parameter to 2.
It looks like the lines would be preserve BUT

CleanShot 2023-11-10 at 13 25 42@2x

as soon as I run the ABAP Cleaner one of the lines get deleted.

Could you please help me with this?

Thanks!

Regards,
Vlad

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions