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
Respect Code pal pseudo-comment for Unchain control #401
In the Code pal documentation for chain declaration usage there is a mention of the option to use pseudo comment "#EC CHAIN_DECL_USAG to suppress checks.
Could this be added to the "Unchain into multiple statements" category to ignore chains marked like this?
My team uses the option to split chains, but there are cases where the chains look nicer and a bit more control would be appreciated.
thank you very much, that's a nice idea! With ABAP cleaner, we don't want to introduce yet another set of pseudo-comments to ABAP code, but respecting an existing one is definitely a good thing. With the next release, the cleanup rule "Unchain into multiple statements" will ignore statements that use this pseudo comment (anywhere after the colon, but preferably right after it):
Activity
jmgrassau commentedon Jul 1, 2025
Hi Plabbs,
thank you very much, that's a nice idea! With ABAP cleaner, we don't want to introduce yet another set of pseudo-comments to ABAP code, but respecting an existing one is definitely a good thing. With the next release, the cleanup rule "Unchain into multiple statements" will ignore statements that use this pseudo comment (anywhere after the colon, but preferably right after it):
I also added a sentence to the rule description:
Kind regards,
Jörg-Michael
enhance ChainRule to respect pseudo-comment "#EC CHAIN_DECL_USAG (SAP…
enhance ChainRule to respect pseudo-comment "#EC CHAIN_DECL_USAG (#401)
jmgrassau commentedon Jul 8, 2025
Hi Plabbs,
thanks again for the inspiration – this should now work with version 1.21.2!
Kind regards,
Jörg-Michael