You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Alignment of parameters with NEW statement not working #153
As the styleguide explicitly demands to break parameters I would have assumed the necessary options are both activated in the default ("going beyond the guide") and essential ("explicitly demanded by the guide") profile. I also checked normal method calls which aren't cleaned with line breaks either.
I was trying to aplly @ConjuringCoffee settings but i can't select any rule. Any idea of what to do to fix it?
Maybe reinstalling ABAP Cleaner?
Thank you for your help!
that's really odd, I've never seen this. Seems like the rules list is minimized rather than grabbing all (vertical) space that it gets. What happens if you change the size of this window? Which OS and which Java / SapMachine version are you using?
thanks for reporting this issue with the NEW operator, as well as #154. This will be fixed in the next release, meaning that regardless of the setting for "Table rows: Keep multiple components on single line", line breaks will be introduced to non-table-rows cases, as they should:
Activity
ConjuringCoffee commentedon Oct 17, 2023
You can already use rule "Align parameters and components" to achieve this. 😉
Here are the settings I am personally using to achieve that result:
fabianlupa commentedon Oct 18, 2023
As the styleguide explicitly demands to break parameters I would have assumed the necessary options are both activated in the default ("going beyond the guide") and essential ("explicitly demanded by the guide") profile. I also checked normal method calls which aren't cleaned with line breaks either.
MagneeR commentedon Oct 18, 2023
I was trying to aplly @ConjuringCoffee settings but i can't select any rule. Any idea of what to do to fix it?

Maybe reinstalling ABAP Cleaner?
Thank you for your help!
jmgrassau commentedon Oct 18, 2023
Hi MagneeR,
that's really odd, I've never seen this. Seems like the rules list is minimized rather than grabbing all (vertical) space that it gets. What happens if you change the size of this window? Which OS and which Java / SapMachine version are you using?
Kind regards,
Jörg-Michael
jmgrassau commentedon Oct 18, 2023
P.S.: Apart from that, this is the same as in #154: Things are kept on one line because of this option:
which should not happen in this case, because it is not a table row.
Kind regards,
Jörg-Michael
MagneeR commentedon Oct 18, 2023
Hi Jörg-Michael,
I made the window smaller and all the rules appear again. Now I know what to do in case it happens again.
Thank you for all!
jmgrassau commentedon Oct 18, 2023
Hi MagneeR,
thanks for reporting this issue with the NEW operator, as well as #154. This will be fixed in the next release, meaning that regardless of the setting for "Table rows: Keep multiple components on single line", line breaks will be introduced to non-table-rows cases, as they should:
Kind regards,
Jörg-Michael
MagneeR commentedon Oct 18, 2023
Hi Jörg-Michael,
That's perfect! 😄
You are doing a great job.
Thank you very much!
ConjuringCoffee commentedon Oct 18, 2023
I didn't even know I wanted that, great 😁
fix AlignParametersRule for non-table-row one-liners (SAP#153)
fix AlignParametersRule for non-table-row one-liners (#153)
jmgrassau commentedon Oct 23, 2023
Hi MagneeR,
thanks again for pointing this out – this should now be fixed in version 1.8.0, which was just released!
Kind regards,
Jörg-Michael