Skip to content

Respect Code pal pseudo-comment for Unchain control #401

Closed

Description

@Plabbs

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.

Image

Activity

  1. self-assigned this
    on Jul 1, 2025
  2. jmgrassau commented on Jul 1, 2025

    @jmgrassau
    Member

    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):

    Image

    I also added a sentence to the rule description:

    Image

    Kind regards,
    Jörg-Michael

  3. jmgrassau commented on Jul 8, 2025

    @jmgrassau
    Member

    Hi Plabbs,

    thanks again for the inspiration – this should now work with version 1.21.2!

    Kind regards,
    Jörg-Michael

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions