Skip to content

Commit

Permalink
fixes #433
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Borin committed Oct 26, 2021
1 parent 12b4098 commit df87440
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/checks/y_check_db_access_in_ut.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,11 @@ CLASS Y_CHECK_DB_ACCESS_IN_UT IMPLEMENTATION.
RETURN.
ENDIF.

result = xsdbool( line_exists( defined_classes[ name = superclass
has_framework = abap_true ] ) ).
DATA(defined_superclass) = VALUE #( defined_classes[ name = superclass ] OPTIONAL ).

" Avoiding false-positives (inheriting from global class which is out of scan scope)
result = xsdbool( defined_superclass-has_framework = abap_true
OR defined_superclass IS INITIAL ).
ENDMETHOD.


Expand Down

0 comments on commit df87440

Please sign in to comment.