Skip to content

TODO comment breaks ABAP Doc #425

@ConjuringCoffee

Description

@ConjuringCoffee

Hi Jörg-Michael,

I found an example where the inserted TODO comment for unused variables from rule "Delete unused variables" breaks ABAP Doc comments.

Before:

  METHOD example.
    "! Test
    DATA lv_test TYPE i.
  ENDMETHOD.

After:

  METHOD example.
    "! Test
    " TODO: variable is never used (ABAP cleaner)
    DATA lv_test TYPE i.
  ENDMETHOD.

The TODO comment separates the ABAP Doc comment from the variable, causing a syntax warning:

ABAP Doc comment is in the wrong position.

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