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
Indentation of CATCH with multiple exception classes #376
good idea – this could either be a new cleanup rule, or we could add it to "Align CLEAR:, FREE: and SORT", with a similar selection ("Use one line per exception class: Always | Never" + maximum line length)
Hi Jörg-Michael,
I think this is similar to SORT. So either include in existing rule, or split this into two rules (CLEAR+FREE vs SORT+CATCH)
Best regards,
Edo
Activity
jmgrassau commentedon Dec 6, 2024
Hi Edo,
good idea – this could either be a new cleanup rule, or we could add it to "Align CLEAR:, FREE: and SORT", with a similar selection ("Use one line per exception class: Always | Never" + maximum line length)
Kind regards,
Jörg-Michael
vonglan commentedon Dec 9, 2024
Hi Jörg-Michael,
I think this is similar to SORT. So either include in existing rule, or split this into two rules (CLEAR+FREE vs SORT+CATCH)
Best regards,
Edo
jmgrassau commentedon Dec 9, 2024
Hi Edo,
I think this still fits quite well into the same rule, so we now have:
Or alternatively, using the "Maximum line length" setting:
I also added a "keep as is" option to all four combo boxes, in case someone only wants to align some of these statements.
Kind regards,
Jörg-Michael
enhance AlignClearFreeAndSortRule for CATCH (SAP#376)
enhance AlignClearFreeAndSortRule for CATCH (#376)
jmgrassau commentedon Dec 16, 2024
Hi Edo,
hope this works fine now – you can try it out with version 1.21.0, which was just released!
Kind regards,
Jörg-Michael