File tree Expand file tree Collapse file tree 3 files changed +35
-9
lines changed Expand file tree Collapse file tree 3 files changed +35
-9
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,22 @@ CLASS y_check_base IMPLEMENTATION.
226
226
ENDIF .
227
227
ENDLOOP .
228
228
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 .
229
245
ENDMETHOD .
230
246
231
247
@@ -630,14 +646,6 @@ CLASS y_check_base IMPLEMENTATION.
630
646
631
647
632
648
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
-
641
649
statistics->collect( kind = error_priority
642
650
pc = NEW y_pseudo_comment_detector( )->is_pseudo_comment( ref_scan_manager = ref_scan_manager
643
651
scimessages = scimessages
Original file line number Diff line number Diff line change 1
1
*"* use this source file for the definition and implementation of
2
2
*"* local helper classes, interface definitions and type
3
3
*"* 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
+
4
21
CLASS ltd_ref_scan_manager DEFINITION INHERITING FROM y_ref_scan_manager_double .
5
22
PUBLIC SECTION .
6
23
METHODS constructor.
@@ -37,6 +54,7 @@ CLASS ltd_check_base IMPLEMENTATION.
37
54
ref_scan_manager = NEW ltd_ref_scan_manager( ).
38
55
ref_scan_manager->set_ref_scan( VALUE #( ) ).
39
56
clean_code_manager = NEW y_clean_code_manager_double( me ).
57
+ clean_code_exemption_handler = NEW ltd_clean_code_exemption( ).
40
58
ENDMETHOD .
41
59
42
60
Original file line number Diff line number Diff line change 1
1
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 .
3
3
ENDINTERFACE .
You can’t perform that action at this time.
0 commit comments