fix double space findings (#106)

This commit is contained in:
Lars Hvam 2023-03-19 09:09:15 +01:00 committed by oblomov
parent e2641d2b0c
commit b6e4fdb1bb
4 changed files with 29 additions and 29 deletions

View File

@ -35,9 +35,9 @@
}, },
"check_abstract": true, "check_abstract": true,
"check_comments": { "check_comments": {
"exclude": [], "exclude": [],
"severity": "Warning" "severity": "Warning"
}, },
"check_ddic": true, "check_ddic": true,
"check_include": true, "check_include": true,
"check_subrc": true, "check_subrc": true,
@ -82,15 +82,15 @@
"empty_line_in_statement": false, "empty_line_in_statement": false,
"empty_statement": true, "empty_statement": true,
"empty_structure": { "empty_structure": {
"loop": true, "loop": true,
"if": true, "if": true,
"while": true, "while": true,
"case": true, "case": true,
"select": true, "select": true,
"do": true, "do": true,
"at": true, "at": true,
"try": true, "try": true,
"when": false "when": false
}, },
"exit_or_check": true, "exit_or_check": true,
"expand_macros": true, "expand_macros": true,
@ -195,16 +195,16 @@
"pragma_style": true, "pragma_style": true,
"prefer_corresponding": true, "prefer_corresponding": true,
"prefer_inline": { "prefer_inline": {
"severity": "Warning" "severity": "Warning"
}, },
"prefer_is_not": true, "prefer_is_not": true,
"prefer_raise_exception_new": true, "prefer_raise_exception_new": true,
"prefer_returning_to_exporting": false, "prefer_returning_to_exporting": false,
"prefer_xsdbool": true, "prefer_xsdbool": true,
"preferred_compare_operator": true, "preferred_compare_operator": true,
"prefix_is_current_class": { "prefix_is_current_class": {
"severity": "Warning" "severity": "Warning"
}, },
"reduce_string_templates": true, "reduce_string_templates": true,
"release_idoc": true, "release_idoc": true,
"remove_descriptions": { "remove_descriptions": {
@ -218,8 +218,8 @@
"select_performance": true, "select_performance": true,
"selection_screen_naming": true, "selection_screen_naming": true,
"sequential_blank": { "sequential_blank": {
"severity": "Warning" "severity": "Warning"
}, },
"short_case": false, "short_case": false,
"sicf_consistency": true, "sicf_consistency": true,
"slow_parameter_passing": true, "slow_parameter_passing": true,
@ -249,7 +249,7 @@
"unused_types": true, "unused_types": true,
"unused_variables": { "unused_variables": {
"severity": "Warning", "severity": "Warning",
"skipNames": [ "lv_dummy", "i_mv_editor" ] "skipNames": ["lv_dummy", "i_mv_editor"]
}, },
"use_bool_expression": true, "use_bool_expression": true,
"use_class_based_exceptions": true, "use_class_based_exceptions": true,
@ -259,4 +259,4 @@
"whitespace_end": true, "whitespace_end": true,
"xml_consistency": true "xml_consistency": true
} }
} }

View File

@ -32,7 +32,7 @@ CLASS z2ui5_cl_app_demo_06 IMPLEMENTATION.
WHEN client->cs-lifecycle_method-on_init. WHEN client->cs-lifecycle_method-on_init.
DO 1000 TIMES. DO 1000 TIMES.
DATA(ls_row) = VALUE ty_Row( title = 'row_' && sy-index value = 'red' info = 'completed' descr = 'this is a description' checkbox = abap_true ). DATA(ls_row) = VALUE ty_Row( title = 'row_' && sy-index value = 'red' info = 'completed' descr = 'this is a description' checkbox = abap_true ).
INSERT ls_row INTO TABLE t_tab. INSERT ls_row INTO TABLE t_tab.
ENDDO. ENDDO.

View File

@ -124,7 +124,7 @@ CLASS z2ui5_cl_app_demo_21 IMPLEMENTATION.
WHEN 'POPUP_TABLE_CONTINUE'. WHEN 'POPUP_TABLE_CONTINUE'.
delete t_tab where selkz = abap_false. delete t_tab where selkz = abap_false.
client->popup_message_toast( `Entry selected: ` && t_tab[ 1 ]-title ). client->popup_message_toast( `Entry selected: ` && t_tab[ 1 ]-title ).
WHEN 'BACK'. WHEN 'BACK'.
client->nav_app_leave( client->get( )-id_prev_app_stack ). client->nav_app_leave( client->get( )-id_prev_app_stack ).
@ -183,7 +183,7 @@ CLASS z2ui5_cl_app_demo_21 IMPLEMENTATION.
DATA(view) = i_client->factory_view( 'POPUP_TO_DECIDE' ). DATA(view) = i_client->factory_view( 'POPUP_TO_DECIDE' ).
DATA(popup) = view->dialog( DATA(popup) = view->dialog(
title = 'Title' title = 'Title'
icon = 'sap-icon://question-mark' ). icon = 'sap-icon://question-mark' ).
popup->content( )->vbox( class = 'sapUiMediumMargin' popup->content( )->vbox( class = 'sapUiMediumMargin'
)->text( text = 'This is a question, you have to make a decision now, cancel or confirm?' ). )->text( text = 'This is a question, you have to make a decision now, cancel or confirm?' ).
@ -210,7 +210,7 @@ CLASS z2ui5_cl_app_demo_21 IMPLEMENTATION.
popup = view->dialog( popup = view->dialog(
stretch = mv_stretch_active stretch = mv_stretch_active
title = 'Title' title = 'Title'
icon = 'sap-icon://edit' ). icon = 'sap-icon://edit' ).
popup->content( popup->content(
)->text_area( )->text_area(
@ -234,7 +234,7 @@ CLASS z2ui5_cl_app_demo_21 IMPLEMENTATION.
contentheight = '100px' contentheight = '100px'
contentwidth = '1200px' contentwidth = '1200px'
title = 'Title' title = 'Title'
icon = 'sap-icon://edit' ). icon = 'sap-icon://edit' ).
popup->content( popup->content(
)->text_area( )->text_area(
@ -271,9 +271,9 @@ CLASS z2ui5_cl_app_demo_21 IMPLEMENTATION.
popup->content( popup->content(
)->simple_form( )->simple_form(
)->label( 'Input1' )->label( 'Input1'
)->input( view->_bind( ms_popup_input-value1 ) )->input( view->_bind( ms_popup_input-value1 )
)->label( 'Input2' )->label( 'Input2'
)->input( view->_bind( ms_popup_input-value2 ) )->input( view->_bind( ms_popup_input-value2 )
)->label( 'Checkbox' )->label( 'Checkbox'
)->checkbox( )->checkbox(
selected = view->_bind( ms_popup_input-check_is_active ) selected = view->_bind( ms_popup_input-check_is_active )
@ -302,7 +302,7 @@ CLASS z2ui5_cl_app_demo_21 IMPLEMENTATION.
tab->columns( tab->columns(
)->column( width = '5rem' )->text( 'Type' )->get_parent( )->column( width = '5rem' )->text( 'Type' )->get_parent(
)->column( width = '5rem' )->text( 'Number' )->get_parent( )->column( width = '5rem' )->text( 'Number' )->get_parent(
)->column( width = '5rem' )->text( 'ID' )->get_parent( )->column( width = '5rem' )->text( 'ID' )->get_parent(
)->column( )->text( 'Message' )->get_parent( ). )->column( )->text( 'Message' )->get_parent( ).
tab->items( )->column_list_item( )->cells( tab->items( )->column_list_item( )->cells(

View File

@ -220,7 +220,7 @@ CLASS z2ui5_lcl_utility IMPLEMENTATION.
WHEN 'ABAP_BOOL' OR 'ABAP_BOOLEAN'. WHEN 'ABAP_BOOL' OR 'ABAP_BOOLEAN'.
r_result = COND #( WHEN val = abap_true THEN 'true' ELSE 'false' ). r_result = COND #( WHEN val = abap_true THEN 'true' ELSE 'false' ).
WHEN OTHERS. WHEN OTHERS.
r_result = |"{ escape( val = val format = cl_abap_format=>e_json_string ) }"|. r_result = |"{ escape( val = val format = cl_abap_format=>e_json_string ) }"|.
ENDCASE. ENDCASE.
ENDMETHOD. ENDMETHOD.