Skip to content

Error executing rule 'Align SELECT lists': First token 'case' unexpected for a term #229

Closed

Description

@this-yash

Hi,

I've been getting this error for the new cleaning rules added for aligning the SELECT lists (Screenshot Attached). It's just the case statement. If there's any way to rewrite the syntax without getting the error, please share. Else, please check if this issue is fixable.
Also, if we can get a new option added for aligning the joins "below the SELECT clause + 2" instead of/along with "below the table name + 2", just like I did in the screenshot attached, that'd be really awesome!!
Thanks!

image

Activity

  1. jmgrassau commented on Jan 17, 2024

    @jmgrassau
    Member

    Hi Yash,

    thanks a lot for reporting this! That's definitely a bug on ABAP cleaner side (so, no reason to rewrite your code). Will look into it!

    I shall also check about the position of the JOINs. However, I'm not sure whether this will easily be possible, because these joins are not considered as an independent clause (such as FROM, WHERE, GROUP BY etc.), but as part of the FROM clause.

    Kind regards,
    Jörg-Michael

  2. self-assigned this
    on Jan 17, 2024
  3. jmgrassau commented on Jan 17, 2024

    @jmgrassau
    Member

    Hi Yash,

    this bug will be fixed with the next release.

    Kind regards,
    Jörg-Michael

  4. this-yash commented on Jan 17, 2024

    @this-yash
    Author

    Sure, Thanks!

  5. jmgrassau commented on Feb 12, 2024

    @jmgrassau
    Member

    Hi Yash,

    thanks again for this bug report – this bug should now be fixed with version 1.13.1, which was just released!

    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

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions