update linter config, plus remove identical N01 condition (#696)

* update linter config, plus remove identical N01 condition

* add deps
This commit is contained in:
Lars Hvam 2020-09-19 08:14:14 +02:00 committed by GitHub
parent 5eae938b01
commit c36800ee49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 4 deletions

View File

@ -5,7 +5,13 @@
"skipGeneratedFunctionGroups": true, "skipGeneratedFunctionGroups": true,
"skipGeneratedPersistentClasses": true "skipGeneratedPersistentClasses": true
}, },
"dependencies": [], "dependencies": [
{
"url": "https://github.com/abaplint/deps",
"folder": "/deps",
"files": "/src/**/*.*"
}
],
"syntax": { "syntax": {
"version": "v702", "version": "v702",
"errorNamespace": "^(Z|Y)", "errorNamespace": "^(Z|Y)",
@ -13,6 +19,16 @@
"globalMacros": [] "globalMacros": []
}, },
"rules": { "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, "downport": false,
"forbidden_void_type": false, "forbidden_void_type": false,
"line_break_multiple_parameters": false, "line_break_multiple_parameters": false,
@ -54,7 +70,6 @@
"double_space": false, "double_space": false,
"empty_line_in_statement": false, "empty_line_in_statement": false,
"empty_structure": false, "empty_structure": false,
"form_no_dash": true,
"form_tables_obsolete": true, "form_tables_obsolete": true,
"fully_type_constants": false, "fully_type_constants": false,
"global_class": true, "global_class": true,
@ -107,7 +122,6 @@
"sql_escape_host_variables": false, "sql_escape_host_variables": false,
"superclass_final": false, "superclass_final": false,
"tabl_enhancement_category": false, "tabl_enhancement_category": false,
"type_begin_single_include": true,
"type_form_parameters": true, "type_form_parameters": true,
"types_naming": false, "types_naming": false,
"unreachable_code": true, "unreachable_code": true,

View File

@ -1849,7 +1849,7 @@ CLASS zcl_excel_worksheet IMPLEMENTATION.
LOOP AT lt_sema INTO semaitem. LOOP AT lt_sema INTO semaitem.
IF semaitem-col_typ = 'DAT' OR semaitem-col_typ = 'MON' OR IF semaitem-col_typ = 'DAT' OR semaitem-col_typ = 'MON' OR
semaitem-col_typ = 'N00' OR semaitem-col_typ = 'N01' 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 = 'N03' OR semaitem-col_typ = 'PCT' OR
semaitem-col_typ = 'STR' OR semaitem-col_typ = 'NUM'. semaitem-col_typ = 'STR' OR semaitem-col_typ = 'NUM'.
CLEAR str. CLEAR str.