mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-29 02:58:20 +08:00
fix double space findings (#106)
This commit is contained in:
parent
e2641d2b0c
commit
b6e4fdb1bb
|
@ -35,9 +35,9 @@
|
|||
},
|
||||
"check_abstract": true,
|
||||
"check_comments": {
|
||||
"exclude": [],
|
||||
"severity": "Warning"
|
||||
},
|
||||
"exclude": [],
|
||||
"severity": "Warning"
|
||||
},
|
||||
"check_ddic": true,
|
||||
"check_include": true,
|
||||
"check_subrc": true,
|
||||
|
@ -82,15 +82,15 @@
|
|||
"empty_line_in_statement": false,
|
||||
"empty_statement": true,
|
||||
"empty_structure": {
|
||||
"loop": true,
|
||||
"if": true,
|
||||
"while": true,
|
||||
"case": true,
|
||||
"select": true,
|
||||
"do": true,
|
||||
"at": true,
|
||||
"try": true,
|
||||
"when": false
|
||||
"loop": true,
|
||||
"if": true,
|
||||
"while": true,
|
||||
"case": true,
|
||||
"select": true,
|
||||
"do": true,
|
||||
"at": true,
|
||||
"try": true,
|
||||
"when": false
|
||||
},
|
||||
"exit_or_check": true,
|
||||
"expand_macros": true,
|
||||
|
@ -195,16 +195,16 @@
|
|||
"pragma_style": true,
|
||||
"prefer_corresponding": true,
|
||||
"prefer_inline": {
|
||||
"severity": "Warning"
|
||||
},
|
||||
"severity": "Warning"
|
||||
},
|
||||
"prefer_is_not": true,
|
||||
"prefer_raise_exception_new": true,
|
||||
"prefer_returning_to_exporting": false,
|
||||
"prefer_xsdbool": true,
|
||||
"preferred_compare_operator": true,
|
||||
"prefix_is_current_class": {
|
||||
"severity": "Warning"
|
||||
},
|
||||
"severity": "Warning"
|
||||
},
|
||||
"reduce_string_templates": true,
|
||||
"release_idoc": true,
|
||||
"remove_descriptions": {
|
||||
|
@ -218,8 +218,8 @@
|
|||
"select_performance": true,
|
||||
"selection_screen_naming": true,
|
||||
"sequential_blank": {
|
||||
"severity": "Warning"
|
||||
},
|
||||
"severity": "Warning"
|
||||
},
|
||||
"short_case": false,
|
||||
"sicf_consistency": true,
|
||||
"slow_parameter_passing": true,
|
||||
|
@ -249,7 +249,7 @@
|
|||
"unused_types": true,
|
||||
"unused_variables": {
|
||||
"severity": "Warning",
|
||||
"skipNames": [ "lv_dummy", "i_mv_editor" ]
|
||||
"skipNames": ["lv_dummy", "i_mv_editor"]
|
||||
},
|
||||
"use_bool_expression": true,
|
||||
"use_class_based_exceptions": true,
|
||||
|
@ -259,4 +259,4 @@
|
|||
"whitespace_end": true,
|
||||
"xml_consistency": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ CLASS z2ui5_cl_app_demo_06 IMPLEMENTATION.
|
|||
WHEN client->cs-lifecycle_method-on_init.
|
||||
|
||||
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.
|
||||
ENDDO.
|
||||
|
||||
|
|
|
@ -124,7 +124,7 @@ CLASS z2ui5_cl_app_demo_21 IMPLEMENTATION.
|
|||
|
||||
WHEN 'POPUP_TABLE_CONTINUE'.
|
||||
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'.
|
||||
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(popup) = view->dialog(
|
||||
title = 'Title'
|
||||
icon = 'sap-icon://question-mark' ).
|
||||
icon = 'sap-icon://question-mark' ).
|
||||
|
||||
popup->content( )->vbox( class = 'sapUiMediumMargin'
|
||||
)->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(
|
||||
stretch = mv_stretch_active
|
||||
title = 'Title'
|
||||
icon = 'sap-icon://edit' ).
|
||||
icon = 'sap-icon://edit' ).
|
||||
|
||||
popup->content(
|
||||
)->text_area(
|
||||
|
@ -234,7 +234,7 @@ CLASS z2ui5_cl_app_demo_21 IMPLEMENTATION.
|
|||
contentheight = '100px'
|
||||
contentwidth = '1200px'
|
||||
title = 'Title'
|
||||
icon = 'sap-icon://edit' ).
|
||||
icon = 'sap-icon://edit' ).
|
||||
|
||||
popup->content(
|
||||
)->text_area(
|
||||
|
@ -271,9 +271,9 @@ CLASS z2ui5_cl_app_demo_21 IMPLEMENTATION.
|
|||
popup->content(
|
||||
)->simple_form(
|
||||
)->label( 'Input1'
|
||||
)->input( view->_bind( ms_popup_input-value1 )
|
||||
)->input( view->_bind( ms_popup_input-value1 )
|
||||
)->label( 'Input2'
|
||||
)->input( view->_bind( ms_popup_input-value2 )
|
||||
)->input( view->_bind( ms_popup_input-value2 )
|
||||
)->label( 'Checkbox'
|
||||
)->checkbox(
|
||||
selected = view->_bind( ms_popup_input-check_is_active )
|
||||
|
@ -302,7 +302,7 @@ CLASS z2ui5_cl_app_demo_21 IMPLEMENTATION.
|
|||
tab->columns(
|
||||
)->column( width = '5rem' )->text( 'Type' )->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( ).
|
||||
|
||||
tab->items( )->column_list_item( )->cells(
|
||||
|
|
|
@ -220,7 +220,7 @@ CLASS z2ui5_lcl_utility IMPLEMENTATION.
|
|||
WHEN 'ABAP_BOOL' OR 'ABAP_BOOLEAN'.
|
||||
r_result = COND #( WHEN val = abap_true THEN 'true' ELSE 'false' ).
|
||||
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.
|
||||
|
||||
ENDMETHOD.
|
||||
|
|
Loading…
Reference in New Issue
Block a user