We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi Jörg-Michael, I found an issue with the rule "Delete unused variables".
Here's a scenario in which it works correctly.
Before:
REPORT yexample. CLASS lcl_ DEFINITION CREATE PRIVATE. PUBLIC SECTION. METHODS test1. ENDCLASS. CLASS lcl_ IMPLEMENTATION. METHOD test1. SELECT FROM e071 FIELDS activity INTO TABLE @DATA(test). test1( ). ENDMETHOD. ENDCLASS.
After:
REPORT yexample. CLASS lcl_ DEFINITION CREATE PRIVATE. PUBLIC SECTION. METHODS test1. ENDCLASS. CLASS lcl_ IMPLEMENTATION. METHOD test1. SELECT FROM e071 FIELDS activity " TODO: variable is assigned but never used (ABAP cleaner) INTO TABLE @DATA(test). test1( ). ENDMETHOD. ENDCLASS.
It doesn't work if the method is named like the variable. This code is unchanged:
REPORT yexample. CLASS lcl_ DEFINITION CREATE PRIVATE. PUBLIC SECTION. METHODS test. ENDCLASS. CLASS lcl_ IMPLEMENTATION. METHOD test. SELECT FROM e071 FIELDS activity INTO TABLE @DATA(test). test( ). ENDMETHOD. ENDCLASS.
Thanks! 🙂
The text was updated successfully, but these errors were encountered:
Hi ConjuringCoffee,
thanks a lot for perfect documentation of this issue! This bug will be fixed with the next release.
Kind regards, Jörg-Michael
Sorry, something went wrong.
fix UnusedVariablesRule for variable with same name as a method (SAP#222
abdc9a3
)
fix UnusedVariablesRule for variable with same name as a method (#222)
054185a
this should now be fixed with version 1.13.0!
jmgrassau
No branches or pull requests
Hi Jörg-Michael, I found an issue with the rule "Delete unused variables".
Here's a scenario in which it works correctly.
Before:
After:
It doesn't work if the method is named like the variable. This code is unchanged:
Thanks! 🙂
The text was updated successfully, but these errors were encountered: