|
13 | 13 | "errorNamespace": "."
|
14 | 14 | },
|
15 | 15 | "rules": {
|
| 16 | + "cds_comment_style": true, |
| 17 | + "change_if_to_case": true, |
| 18 | + "cds_legacy_view": true, |
| 19 | + "classic_exceptions_overlap": true, |
| 20 | + "local_testclass_consistency": true, |
| 21 | + "no_external_form_calls": true, |
| 22 | + "no_inline_in_optional_branches": true, |
| 23 | + "no_public_attributes": true, |
| 24 | + "nrob_consistency": true, |
| 25 | + "pragma_style": true, |
| 26 | + "slow_parameter_passing": true, |
| 27 | + "superfluous_value": true, |
| 28 | + "unnecessary_pragma": true, |
16 | 29 | "7bit_ascii": true,
|
17 | 30 | "abapdoc": false,
|
18 | 31 | "align_parameters": true,
|
19 | 32 | "allowed_object_naming": true,
|
20 | 33 | "allowed_object_types": false,
|
21 | 34 | "ambiguous_statement": true,
|
22 |
| - "avoid_use": true, |
| 35 | + "avoid_use": { |
| 36 | + "define": true, |
| 37 | + "statics": true, |
| 38 | + "defaultKey": true, |
| 39 | + "break": false, // todo |
| 40 | + "testSeams": true, |
| 41 | + "describeLines": true |
| 42 | + }, |
23 | 43 | "begin_end_names": true,
|
24 | 44 | "begin_single_include": true,
|
25 | 45 | "call_transaction_authority_check": true,
|
|
29 | 49 | "check_comments": false,
|
30 | 50 | "check_ddic": true,
|
31 | 51 | "check_include": true,
|
32 |
| - "check_no_handler_pragma": true, |
33 | 52 | "check_subrc": true,
|
34 | 53 | "check_syntax": true,
|
35 | 54 | "check_text_elements": true,
|
|
44 | 63 | "mapping": []
|
45 | 64 | },
|
46 | 65 | "constructor_visibility_public": true,
|
47 |
| - "contains_tab": { |
48 |
| - "exclude": [], |
49 |
| - "severity": "Error", |
50 |
| - "spaces": 1 |
51 |
| - }, |
52 |
| - "cyclic_oo": { |
53 |
| - "exclude": [], |
54 |
| - "severity": "Error", |
55 |
| - "skip": [] |
56 |
| - }, |
57 |
| - "cyclomatic_complexity": { |
58 |
| - "exclude": [], |
59 |
| - "severity": "Error", |
60 |
| - "max": 20 |
61 |
| - }, |
62 |
| - "dangerous_statement": { |
63 |
| - "exclude": [], |
64 |
| - "severity": "Error", |
65 |
| - "execSQL": true, |
66 |
| - "kernelCall": true, |
67 |
| - "systemCall": true, |
68 |
| - "insertReport": true, |
69 |
| - "generateDynpro": true, |
70 |
| - "generateReport": true, |
71 |
| - "generateSubroutine": true, |
72 |
| - "deleteReport": true, |
73 |
| - "deleteTextpool": true, |
74 |
| - "deleteDynpro": true, |
75 |
| - "importDynpro": true, |
76 |
| - "dynamicSQL": true |
77 |
| - }, |
| 66 | + "contains_tab": true, |
| 67 | + "cyclic_oo": true, |
| 68 | + "cyclomatic_complexity": true, |
| 69 | + "dangerous_statement": true, |
78 | 70 | "db_operation_in_loop": true,
|
79 | 71 | "definitions_top": true,
|
80 | 72 | "description_empty": true,
|
81 |
| - "double_space": { |
82 |
| - "exclude": [], |
83 |
| - "severity": "Error", |
84 |
| - "keywords": true, |
85 |
| - "startParen": true, |
86 |
| - "endParen": true, |
87 |
| - "afterColon": true |
88 |
| - }, |
| 73 | + "double_space": true, |
89 | 74 | "downport": true,
|
90 |
| - "empty_line_in_statement": { |
91 |
| - "exclude": [], |
92 |
| - "severity": "Error", |
93 |
| - "allowChained": false |
94 |
| - }, |
| 75 | + "empty_line_in_statement": true, |
95 | 76 | "empty_statement": true,
|
96 |
| - "empty_structure": { |
97 |
| - "exclude": [], |
98 |
| - "severity": "Error", |
99 |
| - "loop": true, |
100 |
| - "if": true, |
101 |
| - "while": true, |
102 |
| - "case": true, |
103 |
| - "select": true, |
104 |
| - "do": true, |
105 |
| - "at": true, |
106 |
| - "try": true |
107 |
| - }, |
108 |
| - "exit_or_check": { |
109 |
| - "exclude": [], |
110 |
| - "severity": "Error", |
111 |
| - "allowExit": false, |
112 |
| - "allowCheck": false |
113 |
| - }, |
| 77 | + "empty_structure": true, |
| 78 | + "exit_or_check": true, |
114 | 79 | "exporting": true,
|
115 |
| - "forbidden_identifier": { |
116 |
| - "exclude": [], |
117 |
| - "severity": "Error", |
118 |
| - "check": [] |
119 |
| - }, |
| 80 | + "forbidden_identifier": true, |
120 | 81 | "forbidden_pseudo_and_pragma": {
|
121 | 82 | "exclude": [],
|
122 | 83 | "severity": "Error",
|
|
145 | 106 | "identical_form_names": true,
|
146 | 107 | "if_in_if": true,
|
147 | 108 | "implement_methods": true,
|
148 |
| - "in_statement_indentation": { |
149 |
| - "exclude": [], |
150 |
| - "severity": "Error", |
151 |
| - "blockStatements": 2, |
152 |
| - "ignoreExceptions": true |
153 |
| - }, |
154 |
| - "indentation": { |
155 |
| - "exclude": [], |
156 |
| - "severity": "Error", |
157 |
| - "ignoreExceptions": true, |
158 |
| - "alignTryCatch": false, |
159 |
| - "selectionScreenBlockIndentation": false, |
160 |
| - "globalClassSkipFirst": false, |
161 |
| - "ignoreGlobalClassDefinition": false, |
162 |
| - "ignoreGlobalInterface": false |
163 |
| - }, |
| 109 | + "in_statement_indentation": true, |
| 110 | + "indentation": true, |
164 | 111 | "inline_data_old_versions": true,
|
165 |
| - "intf_referencing_clas": { |
166 |
| - "exclude": [], |
167 |
| - "severity": "Error", |
168 |
| - "allow": [] |
169 |
| - }, |
170 |
| - "keep_single_parameter_on_one_line": { |
171 |
| - "exclude": [], |
172 |
| - "severity": "Error", |
173 |
| - "length": 120 |
174 |
| - }, |
175 |
| - "keyword_case": { |
176 |
| - "exclude": [], |
177 |
| - "severity": "Error", |
178 |
| - "style": "upper", |
179 |
| - "ignoreExceptions": true, |
180 |
| - "ignoreLowerClassImplmentationStatement": true, |
181 |
| - "ignoreGlobalClassDefinition": false, |
182 |
| - "ignoreGlobalInterface": false, |
183 |
| - "ignoreFunctionModuleName": false, |
184 |
| - "ignoreGlobalClassBoundaries": false, |
185 |
| - "ignoreKeywords": [] |
186 |
| - }, |
187 |
| - "line_break_multiple_parameters": { |
188 |
| - "exclude": [], |
189 |
| - "severity": "Error", |
190 |
| - "count": 1 |
191 |
| - }, |
| 112 | + "intf_referencing_clas": true, |
| 113 | + "keep_single_parameter_on_one_line": true, |
| 114 | + "keyword_case": true, |
| 115 | + "line_break_multiple_parameters": true, |
192 | 116 | "line_break_style": false,
|
193 | 117 | "line_length": {
|
194 | 118 | "exclude": [],
|
|
210 | 134 | "exception": "^LCX_.+$",
|
211 | 135 | "test": "^LTCL_.+$"
|
212 | 136 | },
|
213 |
| - "local_testclass_location": true, |
214 | 137 | "local_variable_names": {
|
215 | 138 | "exclude": [],
|
216 | 139 | "severity": "Error",
|
|
245 | 168 | "newline_between_methods": true,
|
246 | 169 | "no_aliases": true,
|
247 | 170 | "no_chained_assignment": true,
|
248 |
| - "no_public_attributes": { |
249 |
| - "exclude": [], |
250 |
| - "severity": "Error", |
251 |
| - "allowReadOnly": false |
252 |
| - }, |
253 | 171 | "no_yoda_conditions": {
|
254 | 172 | "exclude": [],
|
255 | 173 | "severity": "Error",
|
|
287 | 205 | "parser_702_chaining": true,
|
288 | 206 | "parser_error": true,
|
289 | 207 | "parser_missing_space": true,
|
290 |
| - "pragma_placement": true, |
291 | 208 | "prefer_corresponding": true,
|
292 | 209 | "prefer_inline": true,
|
293 | 210 | "prefer_is_not": true,
|
|
0 commit comments