Skip to content

Commit 92409f6

Browse files
committed
Fix issue if findings contain "error"
Example "parser_error" rule
1 parent f3145a3 commit 92409f6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/zcl_abaplint_abapgit_ext_chkrn.clas.abap

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ ENDCLASS.
6060

6161

6262

63-
CLASS ZCL_ABAPLINT_ABAPGIT_EXT_CHKRN IMPLEMENTATION.
63+
CLASS zcl_abaplint_abapgit_ext_chkrn IMPLEMENTATION.
6464

6565

6666
METHOD constructor.
@@ -183,7 +183,8 @@ CLASS ZCL_ABAPLINT_ABAPGIT_EXT_CHKRN IMPLEMENTATION.
183183
rs_check_run-summary = li_json->get( |/check_runs/{ lv_check_run }/output/summary| ).
184184
rs_check_run-count_issues = li_json->get( |/check_runs/{ lv_check_run }/output/annotation_count| ).
185185

186-
IF rs_check_run-summary CS 'Error'.
186+
" Some general error and not abaplint findings
187+
IF rs_check_run-summary CS 'error' AND rs_check_run-summary NS 'objects analyzed'.
187188
zcx_abapgit_exception=>raise( rs_check_run-summary ).
188189
ENDIF.
189190

0 commit comments

Comments
 (0)