IF in IF - False Positive
hardyp opened this issue · 4 comments
hardyp commented
larshp commented
Dwivedirahul44 commented
I think a small change at Check_01 -> Method contains_else to also look for else-if branch might help.
- Unit test results after adding a new scenario
Adding below code:
IF lo_structure->get_type( ) = zcl_aoc_scan=>gc_structure_statement-else or lo_structure->get_type( ) = zcl_aoc_scan=>gc_structure_statement-elseif .
All test pass post-changes.
Let me know if this works, I will add PR.
larshp commented
@Dwivedirahul44 suggest just go ahead and opening the PR, its easier to read the code, plus it can be tested
Dwivedirahul44 commented
PR added.