Update generation UI (#1471)

* update setup

* update

* Update abaplint.jsonc

* Update abaplint.jsonc
This commit is contained in:
oblomov-dev 2024-10-02 00:43:43 +02:00 committed by GitHub
parent e0cb6990f2
commit 7b47b3bba9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
30 changed files with 2045 additions and 1668 deletions

17
app/package-lock.json generated
View File

@ -8,6 +8,7 @@
"name": "z2ui5",
"version": "0.0.1",
"devDependencies": {
"@abaplint/cli": "^2.113.17",
"@sap/ui5-builder-webide-extension": "^1.1.9",
"@sap/ux-ui5-tooling": "1",
"@ui5/cli": "^3.0.0",
@ -17,6 +18,22 @@
"ui5-task-zipper": "^3.1.3"
}
},
"node_modules/@abaplint/cli": {
"version": "2.113.17",
"resolved": "https://registry.npmjs.org/@abaplint/cli/-/cli-2.113.17.tgz",
"integrity": "sha512-++3AXVlGr/AKOsHnClqFMJsRLuirke3FuxHhm+48HeA57pecy0JMoAIQEZF+w0V+wQWcIYx4AFaAeiE4J6LZ8g==",
"dev": true,
"license": "MIT",
"bin": {
"abaplint": "abaplint"
},
"engines": {
"node": ">=12.0.0"
},
"funding": {
"url": "https://github.com/sponsors/larshp"
}
},
"node_modules/@babel/runtime": {
"version": "7.25.6",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.25.6.tgz",

View File

@ -9,6 +9,7 @@
],
"main": "webapp/index.html",
"devDependencies": {
"@abaplint/cli": "^2.113.17",
"@sap/ui5-builder-webide-extension": "^1.1.9",
"@sap/ux-ui5-tooling": "1",
"@ui5/cli": "^3.0.0",
@ -30,6 +31,7 @@
"undeploy": "cf undeploy z2ui5 --delete-services --delete-service-keys --delete-service-brokers",
"deploy-test": "npm run build && fiori deploy --config ui5-deploy.yaml --testMode true",
"build:cf": "ui5 build preload --clean-dest --config ui5-deploy.yaml --include-task=generateCachebusterInfo",
"transform": "node trans/trans2abap.js && abaplint --fix ./trans/abaplint.jsonc",
"build:mta": "rimraf resources mta_archives && mbt build"
},
"sapuxLayer": "CUSTOMER_BASE"

View File

@ -6,7 +6,7 @@ module.exports = function(className, description) {
<VSEOCLASS>
<CLSNAME>${className.toUpperCase()}</CLSNAME>
<LANGU>E</LANGU>
<DESCRIPT>${className.toUpperCase()}</DESCRIPT>
<DESCRIPT>${className.toUpperCase()} (generated)</DESCRIPT>
<STATE>1</STATE>
<CLSCCINCL>X</CLSCCINCL>
<FIXPT>X</FIXPT>

358
app/trans/abaplint.jsonc Normal file
View File

@ -0,0 +1,358 @@
{
"global": {
"files": "/../../src/01/99/**/*.*"
},
"dependencies": [
{
"url": "https://github.com/abapedia/steampunk-2305-api-intersect-702",
"folder": "/deps",
"files": "/src/**/*.*"
}
],
"syntax": {
"version": "v750",
"errorNamespace": "."
},
"rules": {
"7bit_ascii": true,
"abapdoc": false,
"sql_value_conversion" : true,
"select_single_full_key" : true,
"strict_sql" : true,
"easy_to_find_messages" : true,
"fully_type_itabs" : true,
"align_parameters": false,
"smim_consistency": true,
"allowed_object_naming": true,
"allowed_object_types": {
"allowed": [
"CLAS",
"DEVC",
"INTF",
"TABL",
]
},
"ambiguous_statement": true,
"avoid_use": {
"severity": "Error",
"skipQuickFix": false,
"define": true,
"statics": true,
"defaultKey": true,
"break": true,
"testSeams": true,
"describeLines": true,
"exportToMemory": true,
"exportToDatabase": true
},
"begin_end_names": true,
"align_pseudo_comments" : true,
"dynpro_checks" : true,
"empty_event" : true,
"invalid_table_index" : true,
"macro_naming" : true,
"prefer_pragmas" : true,
"add_test_attributes" : true,
"implicit_start_of_selection" : true,
"reduce_procedural_code" : true,
"tables_declared_locally" : true,
"unused_macros" : true,
"align_type_expressions" : true,
"no_prefixes" : false,
"begin_single_include": true,
"call_transaction_authority_check": true,
"cds_comment_style": true,
"cds_legacy_view": true,
"cds_parser_error": true,
"chain_mainly_declarations": true,
"change_if_to_case": true,
"check_abstract": true,
"check_comments": true,
"check_ddic": true,
"check_include": true,
"check_subrc": true,
"check_syntax": true,
"check_text_elements": true,
"check_transformation_exists": true,
"class_attribute_names": true,
"classic_exceptions_overlap": true,
"cloud_types": true,
"colon_missing_space": true,
"commented_code": false,
"constant_classes": true,
"constructor_visibility_public": true,
"contains_tab": true,
"cyclic_oo": false,
"cyclomatic_complexity": {
"exclude": [],
"severity": "Error",
"max": 8
},
"dangerous_statement": {
"exclude": [],
"severity": "Error",
"execSQL": true,
"kernelCall": true,
"systemCall": true,
"insertReport": true,
"generateDynpro": true,
"generateReport": true,
"generateSubroutine": true,
"deleteReport": true,
"deleteTextpool": true,
"deleteDynpro": true,
"exportDynpro": true,
"dynamicSQL": true
},
"db_operation_in_loop": true,
"definitions_top": false,
"description_empty": true,
"double_space": true,
"downport": true,
"empty_line_in_statement": true,
"empty_statement": true,
"empty_structure": {
"loop": false,
"if": true,
"while": true,
"case": true,
"select": true,
"do": true,
"at": true,
"try": true,
"when": false
},
"exit_or_check": true,
"expand_macros": true,
"exporting": true,
"forbidden_identifier": true,
"forbidden_pseudo_and_pragma": {
"exclude": [],
"severity": "Error",
"pseudo": [],
"pragmas": [],
"ignoreGlobalClassDefinition": false,
"ignoreGlobalInterface": false
},
"form_tables_obsolete": true,
"fully_type_constants": {
"checkData": true
},
"function_module_recommendations": true,
"functional_writing": {
"ignoreExceptions": true
},
"global_class": true,
"identical_conditions": true,
"identical_contents": true,
"identical_descriptions": true,
"identical_form_names": true,
"if_in_if": true,
"implement_methods": true,
"in_statement_indentation": false,
"indentation": true,
"inline_data_old_versions": true,
"intf_referencing_clas": false,
"keep_single_parameter_on_one_line": false,
"keyword_case": false,
"line_break_multiple_parameters": false,
"line_break_style": true,
"line_length": false,
"line_only_punc": false,
"local_class_naming": false,
"local_testclass_consistency": true,
"local_variable_names": false,
"main_file_contents": true,
"many_parentheses": true,
"max_one_method_parameter_per_line": true,
"max_one_statement": true,
"message_exists": true,
"method_implemented_twice": true,
"method_length": {
"exclude": [],
"severity": "Error",
"statements": 100,
"errorWhenEmpty": false,
"ignoreTestClasses": true,
"checkForms": true
},
"method_overwrites_builtin": {
"exclude": [ "z2ui5_cl_xml_view" ],
"severity": "Error"
},
"method_parameter_names": false,
"mix_returning": false,
"modify_only_own_db_tables": {
"reportDynamic": true,
"ownTables": "^[yz]"
},
"msag_consistency": true,
"names_no_dash": true,
"nesting": {
"depth": 5
},
"newline_between_methods": true,
"no_aliases": true,
"no_chained_assignment": true,
"no_external_form_calls": true,
"no_inline_in_optional_branches": false,
"no_public_attributes": false,
"no_yoda_conditions": true,
"nrob_consistency": true,
"object_naming": {
"exclude": [],
"severity": "Error",
"patternKind": "required",
"ignoreNames": [],
"ignorePatterns": [],
"clas": "^Z2UI5_C(L|X)",
"intf": "^Z2UI5_IF",
"prog": "^Z",
"fugr": "^Z",
"tabl": "^Z",
"ttyp": "^Z",
"dtel": "^Z",
"doma": "^Z",
"msag": "^Z",
"tran": "^Z",
"enqu": "^EZ",
"auth": "^Z",
"pinf": "^Z",
"idoc": "^Z",
"xslt": "^Z",
"ssfo": "^Z",
"ssst": "^Z",
"shlp": "^Z"
},
"obsolete_statement": true,
"omit_parameter_name": true,
"omit_preceding_zeros": true,
"omit_receiving": true,
"parser_702_chaining": true,
"parser_error": true,
"parser_missing_space": true,
"pragma_style": true,
"prefer_corresponding": true,
"prefer_inline": true,
"prefer_is_not": true,
"prefer_raise_exception_new": true,
"prefer_returning_to_exporting": true,
"prefer_xsdbool": true,
"preferred_compare_operator": true,
"prefix_is_current_class": {
"severity": "Warning"
},
"reduce_string_templates": true,
"release_idoc": true,
"remove_descriptions": {
"exclude": [],
"severity": "Error",
"ignoreExceptions": false,
"ignoreWorkflow": false
},
"rfc_error_handling": true,
"select_add_order_by": false,
"select_performance": true,
"selection_screen_naming": true,
"sequential_blank": {
"severity": "Warning"
},
"short_case": true,
"sicf_consistency": true,
"slow_parameter_passing": true,
"space_before_colon": true,
"space_before_dot": true,
"sql_escape_host_variables": true,
"start_at_tab": false,
"static_call_via_instance": {
"allowInTestclassIncludes": false
},
"superclass_final": true,
"superfluous_value": true,
"sy_modification": true,
"tabl_enhancement_category": true,
"try_without_catch": true,
"type_form_parameters": true,
"types_naming": false,
"uncaught_exception": true,
"unknown_types": true,
"unnecessary_chaining": true,
"unnecessary_pragma": true,
"unnecessary_return": true,
"unreachable_code": true,
"unsecure_fae": true,
"unused_ddic": true,
"unused_methods": true,
"unused_types": true,
"unused_variables": {
"severity": "Error",
"skipNames": ["lv_dummy"]
},
"use_bool_expression": true,
"use_class_based_exceptions": true,
"use_line_exists": true,
"use_new": true,
"when_others_last": true,
"whitespace_end": false,
"xml_consistency": true,
"forbidden_void_type": {
"check": [
"^boole_d$",
"^char10$",
"^char12$",
"^char2$",
"^char20$",
"^char30$",
"^char4$",
"^char50$",
"^char70$",
"^cl_abap_syst",
"^cl_aff_",
"^cl_aucv_test_runner_abstract$",
"^cl_aucv_test_runner_standard$",
"^cl_aunit_assert$",
"^cl_axt_dbtable$",
"^cl_blue_wb_utility$",
"^cl_oo_source$",
"^/ui2/cl_$",
"^/ui2/cl_",
"^cl_saunit_internal_result$",
"^cl_srvd_wb_object_data$",
"^cl_wb_object_operator_factory$",
"^cl_wer_const$",
"^cl_xco_",
"^cx_aff_",
"^cx_wb_object_operation_error$",
"^cx_xco_",
"^flag$",
"^i18_a_langiso2$",
"^if_adt_lock_handle$",
"^if_aff_",
"^if_satc_ci_variant_access$",
"^if_saunit_internal_result$",
"^if_saunit_internal_result_type$",
"^if_srvd_types$",
"^if_wb_adt_plugin_resource_co$",
"^if_wb_object_data_selection_co$",
"^if_wb_object_operator$",
"^if_xco_",
"^int4$",
"^numc2$",
"^sabp_t_tadir_keys$",
"^sap_bool$",
"^srcsystem$",
"^stringtab$",
"^sychar01$",
"^sychar10$",
"^sychar70$",
"^sydatum$",
"^sylangu$",
"^syst_title$",
"^syuzeit$",
"^xubname$",
"^feld$",
"^abap_boolean$",
]
},
}
}

View File

@ -54,7 +54,7 @@ function generateClassName(filePath) {
fileName.splice(1, 1); // Remove the middle part
}
const folderPath = parts.map(part => part.substring(0, 4)).join('_').toLowerCase();
return `z2ui5_cl_app_${fileName.join('_')}`;
return `z2ui5_cl_app_${fileName.join('_').toLowerCase()}`;
}
// Function to recursively get all files in a directory

View File

@ -82,7 +82,7 @@
"commented_code": false,
"constant_classes": true,
"constructor_visibility_public": true,
"contains_tab": false,
"contains_tab": true,
"cyclic_oo": false,
"cyclomatic_complexity": {
"exclude": [],

View File

@ -1,4 +1,4 @@
CLASS z2ui5_cl_app_App_js DEFINITION
CLASS z2ui5_cl_app_app_js DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
@ -14,7 +14,7 @@ CLASS z2ui5_cl_app_App_js DEFINITION
ENDCLASS.
CLASS z2ui5_cl_app_App_js IMPLEMENTATION.
CLASS z2ui5_cl_app_app_js IMPLEMENTATION.
METHOD get.

View File

@ -5,7 +5,7 @@
<VSEOCLASS>
<CLSNAME>Z2UI5_CL_APP_APP_JS</CLSNAME>
<LANGU>E</LANGU>
<DESCRIPT>Z2UI5_CL_APP_APP_JS</DESCRIPT>
<DESCRIPT>Z2UI5_CL_APP_APP_JS (generated)</DESCRIPT>
<STATE>1</STATE>
<CLSCCINCL>X</CLSCCINCL>
<FIXPT>X</FIXPT>

View File

@ -1,4 +1,4 @@
CLASS z2ui5_cl_app_App_xml DEFINITION
CLASS z2ui5_cl_app_app_xml DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
@ -14,7 +14,7 @@ CLASS z2ui5_cl_app_App_xml DEFINITION
ENDCLASS.
CLASS z2ui5_cl_app_App_xml IMPLEMENTATION.
CLASS z2ui5_cl_app_app_xml IMPLEMENTATION.
METHOD get.

View File

@ -5,7 +5,7 @@
<VSEOCLASS>
<CLSNAME>Z2UI5_CL_APP_APP_XML</CLSNAME>
<LANGU>E</LANGU>
<DESCRIPT>Z2UI5_CL_APP_APP_XML</DESCRIPT>
<DESCRIPT>Z2UI5_CL_APP_APP_XML (generated)</DESCRIPT>
<STATE>1</STATE>
<CLSCCINCL>X</CLSCCINCL>
<FIXPT>X</FIXPT>

View File

@ -1,4 +1,4 @@
CLASS z2ui5_cl_app_Component_js DEFINITION
CLASS z2ui5_cl_app_component_js DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
@ -14,7 +14,7 @@ CLASS z2ui5_cl_app_Component_js DEFINITION
ENDCLASS.
CLASS z2ui5_cl_app_Component_js IMPLEMENTATION.
CLASS z2ui5_cl_app_component_js IMPLEMENTATION.
METHOD get.

View File

@ -5,7 +5,7 @@
<VSEOCLASS>
<CLSNAME>Z2UI5_CL_APP_COMPONENT_JS</CLSNAME>
<LANGU>E</LANGU>
<DESCRIPT>Z2UI5_CL_APP_COMPONENT_JS</DESCRIPT>
<DESCRIPT>Z2UI5_CL_APP_COMPONENT_JS (generated)</DESCRIPT>
<STATE>1</STATE>
<CLSCCINCL>X</CLSCCINCL>
<FIXPT>X</FIXPT>

View File

@ -1,4 +1,4 @@
CLASS z2ui5_cl_app_DebugTool_js DEFINITION
CLASS z2ui5_cl_app_debugtool_js DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
@ -14,7 +14,7 @@ CLASS z2ui5_cl_app_DebugTool_js DEFINITION
ENDCLASS.
CLASS z2ui5_cl_app_DebugTool_js IMPLEMENTATION.
CLASS z2ui5_cl_app_debugtool_js IMPLEMENTATION.
METHOD get.

View File

@ -5,7 +5,7 @@
<VSEOCLASS>
<CLSNAME>Z2UI5_CL_APP_DEBUGTOOL_JS</CLSNAME>
<LANGU>E</LANGU>
<DESCRIPT>Z2UI5_CL_APP_DEBUGTOOL_JS</DESCRIPT>
<DESCRIPT>Z2UI5_CL_APP_DEBUGTOOL_JS (generated)</DESCRIPT>
<STATE>1</STATE>
<CLSCCINCL>X</CLSCCINCL>
<FIXPT>X</FIXPT>

View File

@ -1,4 +1,4 @@
CLASS z2ui5_cl_app_DebugTool_xml DEFINITION
CLASS z2ui5_cl_app_debugtool_xml DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
@ -14,7 +14,7 @@ CLASS z2ui5_cl_app_DebugTool_xml DEFINITION
ENDCLASS.
CLASS z2ui5_cl_app_DebugTool_xml IMPLEMENTATION.
CLASS z2ui5_cl_app_debugtool_xml IMPLEMENTATION.
METHOD get.

View File

@ -5,7 +5,7 @@
<VSEOCLASS>
<CLSNAME>Z2UI5_CL_APP_DEBUGTOOL_XML</CLSNAME>
<LANGU>E</LANGU>
<DESCRIPT>Z2UI5_CL_APP_DEBUGTOOL_XML</DESCRIPT>
<DESCRIPT>Z2UI5_CL_APP_DEBUGTOOL_XML (generated)</DESCRIPT>
<STATE>1</STATE>
<CLSCCINCL>X</CLSCCINCL>
<FIXPT>X</FIXPT>

View File

@ -5,7 +5,7 @@
<VSEOCLASS>
<CLSNAME>Z2UI5_CL_APP_INDEX_HTML</CLSNAME>
<LANGU>E</LANGU>
<DESCRIPT>Z2UI5_CL_APP_INDEX_HTML</DESCRIPT>
<DESCRIPT>Z2UI5_CL_APP_INDEX_HTML (generated)</DESCRIPT>
<STATE>1</STATE>
<CLSCCINCL>X</CLSCCINCL>
<FIXPT>X</FIXPT>

View File

@ -5,7 +5,7 @@
<VSEOCLASS>
<CLSNAME>Z2UI5_CL_APP_MANIFEST_JSON</CLSNAME>
<LANGU>E</LANGU>
<DESCRIPT>Z2UI5_CL_APP_MANIFEST_JSON</DESCRIPT>
<DESCRIPT>Z2UI5_CL_APP_MANIFEST_JSON (generated)</DESCRIPT>
<STATE>1</STATE>
<CLSCCINCL>X</CLSCCINCL>
<FIXPT>X</FIXPT>

View File

@ -5,7 +5,7 @@
<VSEOCLASS>
<CLSNAME>Z2UI5_CL_APP_MODELS_JS</CLSNAME>
<LANGU>E</LANGU>
<DESCRIPT>Z2UI5_CL_APP_MODELS_JS</DESCRIPT>
<DESCRIPT>Z2UI5_CL_APP_MODELS_JS (generated)</DESCRIPT>
<STATE>1</STATE>
<CLSCCINCL>X</CLSCCINCL>
<FIXPT>X</FIXPT>

View File

@ -1,4 +1,4 @@
CLASS z2ui5_cl_app_Server_js DEFINITION
CLASS z2ui5_cl_app_server_js DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
@ -14,7 +14,7 @@ CLASS z2ui5_cl_app_Server_js DEFINITION
ENDCLASS.
CLASS z2ui5_cl_app_Server_js IMPLEMENTATION.
CLASS z2ui5_cl_app_server_js IMPLEMENTATION.
METHOD get.

View File

@ -5,7 +5,7 @@
<VSEOCLASS>
<CLSNAME>Z2UI5_CL_APP_SERVER_JS</CLSNAME>
<LANGU>E</LANGU>
<DESCRIPT>Z2UI5_CL_APP_SERVER_JS</DESCRIPT>
<DESCRIPT>Z2UI5_CL_APP_SERVER_JS (generated)</DESCRIPT>
<STATE>1</STATE>
<CLSCCINCL>X</CLSCCINCL>
<FIXPT>X</FIXPT>

View File

@ -5,7 +5,7 @@
<VSEOCLASS>
<CLSNAME>Z2UI5_CL_APP_STYLE_CSS</CLSNAME>
<LANGU>E</LANGU>
<DESCRIPT>Z2UI5_CL_APP_STYLE_CSS</DESCRIPT>
<DESCRIPT>Z2UI5_CL_APP_STYLE_CSS (generated)</DESCRIPT>
<STATE>1</STATE>
<CLSCCINCL>X</CLSCCINCL>
<FIXPT>X</FIXPT>

View File

@ -1,4 +1,4 @@
CLASS z2ui5_cl_app_View1_js DEFINITION
CLASS z2ui5_cl_app_view1_js DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
@ -14,7 +14,7 @@ CLASS z2ui5_cl_app_View1_js DEFINITION
ENDCLASS.
CLASS z2ui5_cl_app_View1_js IMPLEMENTATION.
CLASS z2ui5_cl_app_view1_js IMPLEMENTATION.
METHOD get.

View File

@ -5,7 +5,7 @@
<VSEOCLASS>
<CLSNAME>Z2UI5_CL_APP_VIEW1_JS</CLSNAME>
<LANGU>E</LANGU>
<DESCRIPT>Z2UI5_CL_APP_VIEW1_JS</DESCRIPT>
<DESCRIPT>Z2UI5_CL_APP_VIEW1_JS (generated)</DESCRIPT>
<STATE>1</STATE>
<CLSCCINCL>X</CLSCCINCL>
<FIXPT>X</FIXPT>

View File

@ -1,4 +1,4 @@
CLASS z2ui5_cl_app_View1_xml DEFINITION
CLASS z2ui5_cl_app_view1_xml DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
@ -14,7 +14,7 @@ CLASS z2ui5_cl_app_View1_xml DEFINITION
ENDCLASS.
CLASS z2ui5_cl_app_View1_xml IMPLEMENTATION.
CLASS z2ui5_cl_app_view1_xml IMPLEMENTATION.
METHOD get.

View File

@ -5,7 +5,7 @@
<VSEOCLASS>
<CLSNAME>Z2UI5_CL_APP_VIEW1_XML</CLSNAME>
<LANGU>E</LANGU>
<DESCRIPT>Z2UI5_CL_APP_VIEW1_XML</DESCRIPT>
<DESCRIPT>Z2UI5_CL_APP_VIEW1_XML (generated)</DESCRIPT>
<STATE>1</STATE>
<CLSCCINCL>X</CLSCCINCL>
<FIXPT>X</FIXPT>