From c36800ee494688d00b3a6e323cb4f04a4218fc04 Mon Sep 17 00:00:00 2001 From: Lars Hvam Date: Sat, 19 Sep 2020 08:14:14 +0200 Subject: [PATCH] update linter config, plus remove identical N01 condition (#696) * update linter config, plus remove identical N01 condition * add deps --- abaplint.json | 20 +++++++++++++++++--- src/zcl_excel_worksheet.clas.abap | 2 +- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/abaplint.json b/abaplint.json index 6954d94..e6efc3e 100644 --- a/abaplint.json +++ b/abaplint.json @@ -5,7 +5,13 @@ "skipGeneratedFunctionGroups": true, "skipGeneratedPersistentClasses": true }, - "dependencies": [], + "dependencies": [ + { + "url": "https://github.com/abaplint/deps", + "folder": "/deps", + "files": "/src/**/*.*" + } + ], "syntax": { "version": "v702", "errorNamespace": "^(Z|Y)", @@ -13,6 +19,16 @@ "globalMacros": [] }, "rules": { + "begin_single_include": true, + "check_subrc": false, + "cyclomatic_complexity": false, + "forbidden_pseudo_and_pragma": false, + "identical_conditions": false, + "line_break_style": false, + "names_no_dash": true, + "parser_missing_space": true, + "unused_types": false, + "use_line_exists": false, "downport": false, "forbidden_void_type": false, "line_break_multiple_parameters": false, @@ -54,7 +70,6 @@ "double_space": false, "empty_line_in_statement": false, "empty_structure": false, - "form_no_dash": true, "form_tables_obsolete": true, "fully_type_constants": false, "global_class": true, @@ -107,7 +122,6 @@ "sql_escape_host_variables": false, "superclass_final": false, "tabl_enhancement_category": false, - "type_begin_single_include": true, "type_form_parameters": true, "types_naming": false, "unreachable_code": true, diff --git a/src/zcl_excel_worksheet.clas.abap b/src/zcl_excel_worksheet.clas.abap index e63d1d6..c4e6b1c 100644 --- a/src/zcl_excel_worksheet.clas.abap +++ b/src/zcl_excel_worksheet.clas.abap @@ -1849,7 +1849,7 @@ CLASS zcl_excel_worksheet IMPLEMENTATION. LOOP AT lt_sema INTO semaitem. IF semaitem-col_typ = 'DAT' OR semaitem-col_typ = 'MON' OR semaitem-col_typ = 'N00' OR semaitem-col_typ = 'N01' OR - semaitem-col_typ = 'N01' OR semaitem-col_typ = 'N02' OR + semaitem-col_typ = 'N02' OR semaitem-col_typ = 'N03' OR semaitem-col_typ = 'PCT' OR semaitem-col_typ = 'STR' OR semaitem-col_typ = 'NUM'. CLEAR str.