-
Notifications
You must be signed in to change notification settings - Fork 53
Alignment of parameters with NEW statement not working #153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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? |
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, |
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, |
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. |
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, |
Hi Jörg-Michael, You are doing a great job. |
I didn't even know I wanted that, great 😁 |
Hi MagneeR, thanks again for pointing this out – this should now be fixed in version 1.8.0, which was just released! Kind regards, |
Hi!
I'm using the ABAP Cleaner tool and I realize that its not working as I expected with the NEW operator.
Original code and ABAP Cleaner return:

Expected result:

Can you add a new rule for this?
Thank you!
The text was updated successfully, but these errors were encountered: