Open jfandy1982 opened 10 months ago
Add Option 3:
Hi Andreas,
you're right, the "Align declarations" rule so far only changes the first line of multi-line table type definitions (which could get rather complex if you define multiple secondary keys etc.). So, it would be a good enhancement to care for those following lines, too – at least by moving them along with the TYPE of the first line!
Kind regards, Jörg-Michael
Hello,
I might have found an issue with formatting TYPES definitions. According to the interactive ABAPCleaner UI, the rule 'Align declarations' should be applied. I am using this rule with the default configuration settings of version 1.11.
It seems, that table definitions across several lines are the issue here. The TYPE keyword is aligned with the name of the defined table type. But the addition with the key specification for the table is not adjusted. The line length exceeds the default value.
Before:
After:
Result Option 1: Pull it into the previous line, if configured line length allows.
Result Option 2: Format is the same way as the constants example in the rule configuration screen.
Would it be possible? Or are there other constraints, which contradict that? I don't prefer any option, but I like the consistency, the ABAPCleaner tool creates.
Kind regards, Andreas Ziegler