mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 20:03:20 +08:00
Clean-up double_spaces
(#6573)
Co-authored-by: Lars Hvam <larshp@hotmail.com>
This commit is contained in:
parent
c750a82726
commit
b09bc05b63
|
@ -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( ).
|
||||
|
||||
|
|
|
@ -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 ).
|
||||
|
||||
|
|
|
@ -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 = <ls_hotkey>-hotkey.
|
||||
IF ms_user_settings-link_hints_enabled = abap_true AND
|
||||
ms_user_settings-link_hint_key = <ls_hotkey>-hotkey.
|
||||
" Link hint activation key is more important
|
||||
CONTINUE.
|
||||
ENDIF.
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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( '<div id="browser-control-warning" class="browser-control-warning">' ).
|
||||
ii_html->add( zcl_abapgit_gui_chunk_lib=>render_warning_banner(
|
||||
|
|
|
@ -233,15 +233,15 @@ CLASS zcl_abapgit_html_toolbar IMPLEMENTATION.
|
|||
|
||||
IF <ls_item>-cur = abap_true.
|
||||
IF <ls_item>-li_class IS INITIAL.
|
||||
lv_class_value = 'current-menu-item'.
|
||||
lv_class_value = 'current-menu-item'.
|
||||
ELSE.
|
||||
lv_class_value = |current-menu-item { <ls_item>-li_class }|.
|
||||
lv_class_value = |current-menu-item { <ls_item>-li_class }|.
|
||||
ENDIF.
|
||||
ELSE.
|
||||
lv_class_value = <ls_item>-li_class.
|
||||
lv_class_value = <ls_item>-li_class.
|
||||
ENDIF.
|
||||
IF lv_class_value IS NOT INITIAL.
|
||||
lv_class = | class="{ lv_class_value }"|.
|
||||
lv_class = | class="{ lv_class_value }"|.
|
||||
ENDIF.
|
||||
IF <ls_item>-aux IS NOT INITIAL.
|
||||
lv_aux = | data-aux="{ <ls_item>-aux }"|.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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( |<tr><td>{ lv_method }</td><td class="center">| ).
|
||||
ri_html->add( |<tr><td>{ lv_method }</td><td class="center">| ).
|
||||
IF lv_source IS INITIAL OR lv_source = 'RETURN.' OR lv_source = 'EXIT.'.
|
||||
ri_html->add( 'No' ).
|
||||
ELSE.
|
||||
|
|
|
@ -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( '<td class="user">' ).
|
||||
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( '</td>' ).
|
||||
|
||||
ri_html->add( '<td class="transport">' ).
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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 }| ).
|
||||
|
|
Loading…
Reference in New Issue
Block a user