Skip to content

Commit d4ce952

Browse files
authored
Update y_code_pal_version.intf.abap (#327)
* Update y_code_pal_version.intf.abap * fixes #326
1 parent cff1278 commit d4ce952

File tree

3 files changed

+35
-9
lines changed

3 files changed

+35
-9
lines changed

src/foundation/y_check_base.clas.abap

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,22 @@ CLASS y_check_base IMPLEMENTATION.
226226
ENDIF.
227227
ENDLOOP.
228228

229+
IF result IS INITIAL.
230+
RETURN.
231+
ENDIF.
232+
233+
DATA(exempt) = clean_code_exemption_handler->is_object_exempted( object_type = tadir_keys-object
234+
object_name = tadir_keys-obj_name ).
235+
236+
IF exempt = abap_true.
237+
CLEAR result.
238+
RETURN.
239+
ENDIF.
240+
241+
IF is_app_comp_in_scope( statement-level ) = abap_false.
242+
CLEAR result.
243+
RETURN.
244+
ENDIF.
229245
ENDMETHOD.
230246

231247

@@ -630,14 +646,6 @@ CLASS y_check_base IMPLEMENTATION.
630646

631647

632648
METHOD raise_error.
633-
IF clean_code_exemption_handler->is_object_exempted( object_name = object_name object_type = object_type ) = abap_true.
634-
RETURN.
635-
ENDIF.
636-
637-
IF is_app_comp_in_scope( statement_level ) = abap_false.
638-
RETURN.
639-
ENDIF.
640-
641649
statistics->collect( kind = error_priority
642650
pc = NEW y_pseudo_comment_detector( )->is_pseudo_comment( ref_scan_manager = ref_scan_manager
643651
scimessages = scimessages

src/foundation/y_check_base.clas.locals_imp.abap

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
*"* use this source file for the definition and implementation of
22
*"* local helper classes, interface definitions and type
33
*"* declarations
4+
CLASS ltd_clean_code_exemption DEFINITION.
5+
PUBLIC SECTION.
6+
INTERFACES y_if_exemption.
7+
8+
ENDCLASS.
9+
10+
11+
CLASS ltd_clean_code_exemption IMPLEMENTATION.
12+
13+
METHOD y_if_exemption~is_object_exempted.
14+
RETURN.
15+
ENDMETHOD.
16+
17+
ENDCLASS.
18+
19+
20+
421
CLASS ltd_ref_scan_manager DEFINITION INHERITING FROM y_ref_scan_manager_double.
522
PUBLIC SECTION.
623
METHODS constructor.
@@ -37,6 +54,7 @@ CLASS ltd_check_base IMPLEMENTATION.
3754
ref_scan_manager = NEW ltd_ref_scan_manager( ).
3855
ref_scan_manager->set_ref_scan( VALUE #( ) ).
3956
clean_code_manager = NEW y_clean_code_manager_double( me ).
57+
clean_code_exemption_handler = NEW ltd_clean_code_exemption( ).
4058
ENDMETHOD.
4159

4260

src/y_code_pal_version.intf.abap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
INTERFACE y_code_pal_version PUBLIC.
2-
CONSTANTS abap TYPE string VALUE '1.12.1' ##NO_TEXT.
2+
CONSTANTS abap TYPE string VALUE '1.12.2' ##NO_TEXT.
33
ENDINTERFACE.

0 commit comments

Comments
 (0)