From b09bc05b63d8b297b909a193d14f61bba76ee1ce Mon Sep 17 00:00:00 2001 From: Marc Bernard <59966492+mbtools@users.noreply.github.com> Date: Thu, 26 Oct 2023 00:41:17 -0400 Subject: [PATCH] Clean-up `double_spaces` (#6573) Co-authored-by: Lars Hvam --- ...bapgit_oo_serializer.clas.testclasses.abap | 38 +++++++++---------- ...bapgit_sap_namespace.clas.testclasses.abap | 14 +++---- .../core/zcl_abapgit_gui_hotkey_ctl.clas.abap | 4 +- .../zcl_abapgit_exception_viewer.clas.abap | 2 +- src/ui/lib/zcl_abapgit_gui_page.clas.abap | 2 +- src/ui/lib/zcl_abapgit_html_toolbar.clas.abap | 8 ++-- .../zcl_abapgit_gui_page_commit.clas.abap | 2 +- .../zcl_abapgit_gui_page_debuginfo.clas.abap | 2 +- .../zcl_abapgit_gui_page_stage.clas.abap | 4 +- .../pages/zcl_abapgit_gui_page_tags.clas.abap | 2 +- .../zcl_abapgit_popups.clas.locals_imp.abap | 4 +- 11 files changed, 41 insertions(+), 41 deletions(-) diff --git a/src/objects/oo/zcl_abapgit_oo_serializer.clas.testclasses.abap b/src/objects/oo/zcl_abapgit_oo_serializer.clas.testclasses.abap index 90b7480af..41571bf04 100644 --- a/src/objects/oo/zcl_abapgit_oo_serializer.clas.testclasses.abap +++ b/src/objects/oo/zcl_abapgit_oo_serializer.clas.testclasses.abap @@ -83,7 +83,7 @@ CLASS ltcl_oo_serialize IMPLEMENTATION. METHOD two_line_include. _given_source_is( `*"* use this source file for your ABAP unit test classes` ). - _given_source_is( `` ). + _given_source_is( `` ). _when_skip_is_calculated( ). @@ -94,7 +94,7 @@ CLASS ltcl_oo_serialize IMPLEMENTATION. METHOD two_line_include_2. _given_source_is( `*"* use this source file for your ABAP unit test classes` ). - _given_source_is( `write: 'This is ABAP'.` ). + _given_source_is( `write: 'This is ABAP'.` ). _when_skip_is_calculated( ). @@ -104,7 +104,7 @@ CLASS ltcl_oo_serialize IMPLEMENTATION. METHOD two_line_include_3. - _given_source_is( ` ` ). + _given_source_is( ` ` ). _given_source_is( `*"* use this source file for your ABAP unit test classes` ). _when_skip_is_calculated( ). @@ -116,22 +116,22 @@ CLASS ltcl_oo_serialize IMPLEMENTATION. METHOD more_than_two_lines. _given_source_is( `*"* use this source file for your ABAP unit test classes` ). - _given_source_is( `CLASS ltcl_test DEFINITION FINAL FOR TESTING` ). - _given_source_is( ` DURATION SHORT` ). - _given_source_is( ` RISK LEVEL HARMLESS.` ). - _given_source_is( ` ` ). - _given_source_is( ` PRIVATE SECTION.` ). - _given_source_is( ` METHODS:` ). - _given_source_is( ` first_test FOR TESTING RAISING cx_static_check.` ). - _given_source_is( `ENDCLASS.` ). - _given_source_is( ` ` ). - _given_source_is( `CLASS ltcl_test IMPLEMENTATION.` ). - _given_source_is( ` ` ). - _given_source_is( ` METHOD first_test.` ). - _given_source_is( ` cl_abap_unit_assert=>fail( 'This is a real test' ).` ). - _given_source_is( ` ENDMETHOD.` ). - _given_source_is( ` ` ). - _given_source_is( `ENDCLASS.` ). + _given_source_is( `CLASS ltcl_test DEFINITION FINAL FOR TESTING` ). + _given_source_is( ` DURATION SHORT` ). + _given_source_is( ` RISK LEVEL HARMLESS.` ). + _given_source_is( ` ` ). + _given_source_is( ` PRIVATE SECTION.` ). + _given_source_is( ` METHODS:` ). + _given_source_is( ` first_test FOR TESTING RAISING cx_static_check.` ). + _given_source_is( `ENDCLASS.` ). + _given_source_is( ` ` ). + _given_source_is( `CLASS ltcl_test IMPLEMENTATION.` ). + _given_source_is( ` ` ). + _given_source_is( ` METHOD first_test.` ). + _given_source_is( ` cl_abap_unit_assert=>fail( 'This is a real test' ).` ). + _given_source_is( ` ENDMETHOD.` ). + _given_source_is( ` ` ). + _given_source_is( `ENDCLASS.` ). _when_skip_is_calculated( ). diff --git a/src/objects/sap/zcl_abapgit_sap_namespace.clas.testclasses.abap b/src/objects/sap/zcl_abapgit_sap_namespace.clas.testclasses.abap index 1c2cfe4f3..9c410d79c 100644 --- a/src/objects/sap/zcl_abapgit_sap_namespace.clas.testclasses.abap +++ b/src/objects/sap/zcl_abapgit_sap_namespace.clas.testclasses.abap @@ -18,10 +18,10 @@ CLASS ltcl_check_split_by_name IMPLEMENTATION. lv_obj_with_namespace = '/BLA12345/TEST/123'. TRY. - ls_obj_with_namespace = zcl_abapgit_factory=>get_sap_namespace( )->split_by_name( lv_obj_with_namespace ). + ls_obj_with_namespace = zcl_abapgit_factory=>get_sap_namespace( )->split_by_name( lv_obj_with_namespace ). CATCH zcx_abapgit_exception INTO lr_ex. - cl_abap_unit_assert=>fail( lr_ex->get_text( ) ). + cl_abap_unit_assert=>fail( lr_ex->get_text( ) ). ENDTRY. cl_abap_unit_assert=>assert_equals( @@ -43,9 +43,9 @@ CLASS ltcl_check_split_by_name IMPLEMENTATION. lv_obj_with_namespace = 'ZCL_ABAPGIT_SAP_NAMESP'. TRY. - ls_obj_with_namespace = zcl_abapgit_factory=>get_sap_namespace( )->split_by_name( lv_obj_with_namespace ). + ls_obj_with_namespace = zcl_abapgit_factory=>get_sap_namespace( )->split_by_name( lv_obj_with_namespace ). CATCH zcx_abapgit_exception INTO lr_ex. - cl_abap_unit_assert=>fail( lr_ex->get_text( ) ). + cl_abap_unit_assert=>fail( lr_ex->get_text( ) ). ENDTRY. cl_abap_unit_assert=>assert_equals( @@ -64,7 +64,7 @@ CLASS ltcl_check_split_by_name IMPLEMENTATION. lv_obj_with_namespace = '/TEST12345/BLA'. TRY. - zcl_abapgit_factory=>get_sap_namespace( )->split_by_name( lv_obj_with_namespace ). + zcl_abapgit_factory=>get_sap_namespace( )->split_by_name( lv_obj_with_namespace ). CATCH zcx_abapgit_exception. RETURN. @@ -78,7 +78,7 @@ CLASS ltcl_check_split_by_name IMPLEMENTATION. lv_obj_with_namespace = '/TEST/TEST/TEST'. TRY. - zcl_abapgit_factory=>get_sap_namespace( )->split_by_name( + zcl_abapgit_factory=>get_sap_namespace( )->split_by_name( iv_obj_with_namespace = lv_obj_with_namespace iv_allow_slash_in_name = abap_false ). @@ -94,7 +94,7 @@ CLASS ltcl_check_split_by_name IMPLEMENTATION. lv_obj_with_namespace = 'TEST/TEST'. TRY. - zcl_abapgit_factory=>get_sap_namespace( )->split_by_name( + zcl_abapgit_factory=>get_sap_namespace( )->split_by_name( iv_obj_with_namespace = lv_obj_with_namespace iv_allow_slash_in_name = abap_false ). diff --git a/src/ui/core/zcl_abapgit_gui_hotkey_ctl.clas.abap b/src/ui/core/zcl_abapgit_gui_hotkey_ctl.clas.abap index 2d99a923d..75ff8b0ff 100644 --- a/src/ui/core/zcl_abapgit_gui_hotkey_ctl.clas.abap +++ b/src/ui/core/zcl_abapgit_gui_hotkey_ctl.clas.abap @@ -112,8 +112,8 @@ CLASS ZCL_ABAPGIT_GUI_HOTKEY_CTL IMPLEMENTATION. DELETE mt_hotkeys INDEX sy-tabix. " Later registered commands enjoys the priority ENDIF. - IF ms_user_settings-link_hints_enabled = abap_true - AND ms_user_settings-link_hint_key = -hotkey. + IF ms_user_settings-link_hints_enabled = abap_true AND + ms_user_settings-link_hint_key = -hotkey. " Link hint activation key is more important CONTINUE. ENDIF. diff --git a/src/ui/lib/zcl_abapgit_exception_viewer.clas.abap b/src/ui/lib/zcl_abapgit_exception_viewer.clas.abap index 79670886a..31e1fc8ac 100644 --- a/src/ui/lib/zcl_abapgit_exception_viewer.clas.abap +++ b/src/ui/lib/zcl_abapgit_exception_viewer.clas.abap @@ -286,7 +286,7 @@ CLASS zcl_abapgit_exception_viewer IMPLEMENTATION. lo_event TYPE REF TO cl_salv_events_table, lo_columns TYPE REF TO cl_salv_columns_table, lo_alv TYPE REF TO cl_salv_table. - DATA ls_position TYPE zif_abapgit_popups=>ty_popup_position. + DATA ls_position TYPE zif_abapgit_popups=>ty_popup_position. TRY. cl_salv_table=>factory( diff --git a/src/ui/lib/zcl_abapgit_gui_page.clas.abap b/src/ui/lib/zcl_abapgit_gui_page.clas.abap index 10871950f..b946e8506 100644 --- a/src/ui/lib/zcl_abapgit_gui_page.clas.abap +++ b/src/ui/lib/zcl_abapgit_gui_page.clas.abap @@ -258,7 +258,7 @@ CLASS ZCL_ABAPGIT_GUI_PAGE IMPLEMENTATION. li_documentation_link->add_a( iv_txt = 'Documentation' iv_typ = zif_abapgit_html=>c_action_type-url - iv_act = 'https://docs.abapgit.org/guide-sapgui.html#sap-gui-for-windows' ). + iv_act = 'https://docs.abapgit.org/guide-sapgui.html#sap-gui-for-windows' ). ii_html->add( '
' ). ii_html->add( zcl_abapgit_gui_chunk_lib=>render_warning_banner( diff --git a/src/ui/lib/zcl_abapgit_html_toolbar.clas.abap b/src/ui/lib/zcl_abapgit_html_toolbar.clas.abap index adadcbdfb..eef86a515 100644 --- a/src/ui/lib/zcl_abapgit_html_toolbar.clas.abap +++ b/src/ui/lib/zcl_abapgit_html_toolbar.clas.abap @@ -233,15 +233,15 @@ CLASS zcl_abapgit_html_toolbar IMPLEMENTATION. IF -cur = abap_true. IF -li_class IS INITIAL. - lv_class_value = 'current-menu-item'. + lv_class_value = 'current-menu-item'. ELSE. - lv_class_value = |current-menu-item { -li_class }|. + lv_class_value = |current-menu-item { -li_class }|. ENDIF. ELSE. - lv_class_value = -li_class. + lv_class_value = -li_class. ENDIF. IF lv_class_value IS NOT INITIAL. - lv_class = | class="{ lv_class_value }"|. + lv_class = | class="{ lv_class_value }"|. ENDIF. IF -aux IS NOT INITIAL. lv_aux = | data-aux="{ -aux }"|. diff --git a/src/ui/pages/zcl_abapgit_gui_page_commit.clas.abap b/src/ui/pages/zcl_abapgit_gui_page_commit.clas.abap index aee62a0c2..f9501fd8c 100644 --- a/src/ui/pages/zcl_abapgit_gui_page_commit.clas.abap +++ b/src/ui/pages/zcl_abapgit_gui_page_commit.clas.abap @@ -295,7 +295,7 @@ CLASS ZCL_ABAPGIT_GUI_PAGE_COMMIT IMPLEMENTATION. iv_form_id = 'commit-form' iv_help_page = 'https://docs.abapgit.org/guide-stage-commit.html' ). - lv_commitmsg_comment_length = mo_settings->get_commitmsg_comment_length( ). + lv_commitmsg_comment_length = mo_settings->get_commitmsg_comment_length( ). ro_form->text( iv_name = c_id-comment diff --git a/src/ui/pages/zcl_abapgit_gui_page_debuginfo.clas.abap b/src/ui/pages/zcl_abapgit_gui_page_debuginfo.clas.abap index 1d570782a..84e067e00 100644 --- a/src/ui/pages/zcl_abapgit_gui_page_debuginfo.clas.abap +++ b/src/ui/pages/zcl_abapgit_gui_page_debuginfo.clas.abap @@ -248,7 +248,7 @@ CLASS zcl_abapgit_gui_page_debuginfo IMPLEMENTATION. val = lv_source del = ` ` ) ). SPLIT lv_method AT '~' INTO lv_rest lv_method. - ri_html->add( |{ lv_method }| ). + ri_html->add( |{ lv_method }| ). IF lv_source IS INITIAL OR lv_source = 'RETURN.' OR lv_source = 'EXIT.'. ri_html->add( 'No' ). ELSE. diff --git a/src/ui/pages/zcl_abapgit_gui_page_stage.clas.abap b/src/ui/pages/zcl_abapgit_gui_page_stage.clas.abap index 8b458a18b..00fb3166b 100644 --- a/src/ui/pages/zcl_abapgit_gui_page_stage.clas.abap +++ b/src/ui/pages/zcl_abapgit_gui_page_stage.clas.abap @@ -351,7 +351,7 @@ CLASS zcl_abapgit_gui_page_stage IMPLEMENTATION. lt_files = io_stage->get_all( ). DELETE lt_files WHERE method <> zif_abapgit_definitions=>c_method-add - AND method <> zif_abapgit_definitions=>c_method-rm. + AND method <> zif_abapgit_definitions=>c_method-rm. CREATE OBJECT lo_page EXPORTING @@ -499,7 +499,7 @@ CLASS zcl_abapgit_gui_page_stage IMPLEMENTATION. ENDCASE. ri_html->add( '' ). - ri_html->add( zcl_abapgit_gui_chunk_lib=>render_user_name( iv_changed_by ) ). + ri_html->add( zcl_abapgit_gui_chunk_lib=>render_user_name( iv_changed_by ) ). ri_html->add( '' ). ri_html->add( '' ). diff --git a/src/ui/pages/zcl_abapgit_gui_page_tags.clas.abap b/src/ui/pages/zcl_abapgit_gui_page_tags.clas.abap index 151c55484..a41717a2a 100644 --- a/src/ui/pages/zcl_abapgit_gui_page_tags.clas.abap +++ b/src/ui/pages/zcl_abapgit_gui_page_tags.clas.abap @@ -154,7 +154,7 @@ CLASS zcl_abapgit_gui_page_tags IMPLEMENTATION. ms_tag-type = io_form_data->get( c_id-tag_type ). ENDIF. - lv_commitmsg_comment_length = mo_settings->get_commitmsg_comment_length( ). + lv_commitmsg_comment_length = mo_settings->get_commitmsg_comment_length( ). ro_form = zcl_abapgit_html_form=>create( iv_form_id = 'create-tag-form' diff --git a/src/ui/zcl_abapgit_popups.clas.locals_imp.abap b/src/ui/zcl_abapgit_popups.clas.locals_imp.abap index 8ae16596a..53b6e73fe 100644 --- a/src/ui/zcl_abapgit_popups.clas.locals_imp.abap +++ b/src/ui/zcl_abapgit_popups.clas.locals_imp.abap @@ -677,8 +677,8 @@ CLASS lcl_object_descision_list IMPLEMENTATION. lo_column ?= ls_column-r_column. - IF iv_selection_mode = if_salv_c_selection_mode=>multiple - AND ls_column-columnname = c_fieldname_selected. + IF iv_selection_mode = if_salv_c_selection_mode=>multiple AND + ls_column-columnname = c_fieldname_selected. lo_column->set_cell_type( if_salv_c_cell_type=>checkbox_hotspot ). lo_column->set_output_length( 20 ). lo_column->set_short_text( |{ iv_select_column_text }| ).