SAP / abap-cleaner

ABAP cleaner applies 95+ cleanup rules to ABAP code at a single keystroke
Apache License 2.0
439 stars 48 forks source link

Feature request: Remove unnecessary line breaks at the end of documents #225

Open ConjuringCoffee opened 9 months ago

ConjuringCoffee commented 9 months ago

Hi Jörg-Michael, happy new year to you! 😄 I'm back with another feature request / bug report.

I'd like to automatically remove unnecessary line breaks at the end of documents. For global classes, the rule "Standardize empty lines within methods" is kind of doing this, but only if the class has no methods.

Example without methods:

image

After:

image

Example with methods, remains unchanged:

image

jmgrassau commented 8 months ago

Hi ConjuringCoffee,

so sorry for responding only now! Nevertheless happy "new" year to you, too!

Thanks for the idea, actually it was of course a bug that "Standardize empty lines within methods" changed this, so the first thing was to fix that… But then, this would indeed be a nice new cleanup rule.

Kind regards, Jörg-Michael