|
12 | 12 | "url": "https://github.com/abaplint/deps",
|
13 | 13 | "folder": "/deps1",
|
14 | 14 | "files": "/src/**/*.*"
|
15 |
| - }, |
16 |
| - { |
17 |
| - "url": "https://github.com/abapGit/abapGit", |
18 |
| - "folder": "/deps2", |
19 |
| - "files": "/src/**/*.*" |
20 | 15 | }
|
21 | 16 | ],
|
22 | 17 | "syntax": {
|
23 | 18 | "version": "v740sp08",
|
24 |
| - "errorNamespace": "^(Z|Y|LCL_|TY_|LIF_)", |
| 19 | + "errorNamespace": "^(Y)", |
25 | 20 | "globalConstants": ["cntb_btype_button", "scan_struc_stmnt_type", "scan_stmnt_type", "scan_struc_type", "scan_token_type"],
|
26 | 21 | "globalMacros": []
|
27 | 22 | },
|
28 | 23 | "rules": {
|
29 | 24 | "7bit_ascii": true,
|
30 | 25 | "abapdoc": false,
|
31 | 26 | "allowed_object_naming": true,
|
32 |
| - "allowed_object_types": { |
33 |
| - "exclude": [], |
34 |
| - "severity": "Error", |
35 |
| - "allowed": [] |
36 |
| - }, |
| 27 | + "allowed_object_types": false, |
37 | 28 | "ambiguous_statement": false,
|
38 |
| - "avoid_use": { |
39 |
| - "exclude": [], |
40 |
| - "severity": "Error", |
41 |
| - "define": true, |
42 |
| - "endselect": true, |
43 |
| - "execSQL": true, |
44 |
| - "kernelCall": true, |
45 |
| - "communication": true, |
46 |
| - "statics": true, |
47 |
| - "systemCall": true, |
48 |
| - "defaultKey": false, |
49 |
| - "break": false, |
50 |
| - "describeLines": false |
51 |
| - }, |
| 29 | + "avoid_use": false, |
52 | 30 | "begin_end_names": true,
|
53 | 31 | "begin_single_include": true,
|
54 |
| - "call_transaction_authority_check": true, |
55 |
| - "chain_mainly_declarations": { |
56 |
| - "exclude": [], |
57 |
| - "severity": "Error", |
58 |
| - "definitions": true, |
59 |
| - "write": true, |
60 |
| - "move": true, |
61 |
| - "refresh": true, |
62 |
| - "unassign": true, |
63 |
| - "clear": true, |
64 |
| - "hide": true, |
65 |
| - "free": true, |
66 |
| - "include": true, |
67 |
| - "check": true |
68 |
| - }, |
| 32 | + "call_transaction_authority_check": false, |
| 33 | + "chain_mainly_declarations": true, |
69 | 34 | "check_abstract": true,
|
70 | 35 | "check_comments": false,
|
71 |
| - "check_ddic": true, |
| 36 | + "check_ddic": false, |
72 | 37 | "check_include": true,
|
73 | 38 | "check_no_handler_pragma": true,
|
74 | 39 | "check_subrc": false,
|
75 | 40 | "check_syntax": true,
|
76 | 41 | "check_text_elements": false,
|
77 |
| - "check_transformation_exists": true, |
| 42 | + "check_transformation_exists": false, |
78 | 43 | "class_attribute_names": false,
|
79 | 44 | "cloud_types": true,
|
80 | 45 | "colon_missing_space": true,
|
81 |
| - "commented_code": false, |
| 46 | + "commented_code": true, |
82 | 47 | "constructor_visibility_public": true,
|
83 | 48 | "contains_tab": false,
|
84 |
| - "cyclomatic_complexity": { |
85 |
| - "exclude": [], |
86 |
| - "severity": "Error", |
87 |
| - "max": 20 |
88 |
| - }, |
89 |
| - "definitions_top": false, |
| 49 | + "cyclomatic_complexity": true, |
| 50 | + "dangerous_statement": true, |
| 51 | + "db_operation_in_loop": false, |
| 52 | + "definitions_top": true, |
90 | 53 | "description_empty": true,
|
91 |
| - "double_space": false, |
| 54 | + "double_space": { |
| 55 | + "startParen": false |
| 56 | + }, |
92 | 57 | "downport": true,
|
93 | 58 | "empty_line_in_statement": false,
|
94 | 59 | "empty_statement": true,
|
95 |
| - "empty_structure": false, |
| 60 | + "empty_structure": true, |
96 | 61 | "exit_or_check": false,
|
97 |
| - "exporting": false, |
98 |
| - "forbidden_identifier": { |
99 |
| - "exclude": [], |
100 |
| - "severity": "Error", |
101 |
| - "check": [] |
102 |
| - }, |
103 |
| - "forbidden_pseudo_and_pragma": { |
104 |
| - "exclude": [], |
105 |
| - "severity": "Error", |
106 |
| - "pseudo": [], |
107 |
| - "pragmas": [], |
108 |
| - "ignoreGlobalClassDefinition": false, |
109 |
| - "ignoreGlobalInterface": false |
110 |
| - }, |
111 |
| - "forbidden_void_type": { |
112 |
| - "exclude": [], |
113 |
| - "severity": "Error", |
114 |
| - "check": [] |
115 |
| - }, |
| 62 | + "exporting": true, |
| 63 | + "forbidden_identifier": false, |
| 64 | + "forbidden_pseudo_and_pragma": false, |
| 65 | + "forbidden_void_type": false, |
116 | 66 | "form_tables_obsolete": true,
|
117 |
| - "fully_type_constants": { |
118 |
| - "exclude": [], |
119 |
| - "severity": "Error", |
120 |
| - "checkData": true |
121 |
| - }, |
| 67 | + "fully_type_constants": false, |
122 | 68 | "function_module_recommendations": true,
|
123 |
| - "functional_writing": { |
124 |
| - "exclude": [], |
125 |
| - "severity": "Error", |
126 |
| - "ignoreExceptions": true |
127 |
| - }, |
| 69 | + "functional_writing": true, |
128 | 70 | "global_class": true,
|
129 | 71 | "identical_conditions": true,
|
130 | 72 | "identical_contents": true,
|
131 | 73 | "identical_form_names": true,
|
| 74 | + "identical_descriptions": false, |
132 | 75 | "if_in_if": true,
|
133 | 76 | "implement_methods": true,
|
134 | 77 | "in_statement_indentation": false,
|
135 | 78 | "indentation": false,
|
136 | 79 | "inline_data_old_versions": true,
|
137 |
| - "keep_single_parameter_on_one_line": false, |
138 |
| - "keyword_case": false, |
139 |
| - "line_break_multiple_parameters": false, |
| 80 | + "intf_referencing_clas": { |
| 81 | + "allow": ["cl_ci_scan"] |
| 82 | + }, |
| 83 | + "keep_single_parameter_on_one_line": true, |
| 84 | + "line_break_multiple_parameters": true, |
140 | 85 | "line_break_style": true,
|
141 | 86 | "line_length": false,
|
142 | 87 | "line_only_punc": false,
|
143 | 88 | "local_class_naming": false,
|
144 | 89 | "local_testclass_location": true,
|
145 | 90 | "local_variable_names": false,
|
146 | 91 | "main_file_contents": true,
|
147 |
| - "many_parenthesis": false, |
| 92 | + "many_parenthesis": true, |
| 93 | + "max_one_method_parameter_per_line": true, |
| 94 | + "method_implemented_twice": true, |
148 | 95 | "max_one_statement": true,
|
149 | 96 | "message_exists": true,
|
150 | 97 | "method_length": false,
|
151 |
| - "method_overwrites_builtin": false, |
| 98 | + "method_overwrites_builtin": true, |
152 | 99 | "method_parameter_names": false,
|
153 |
| - "mix_returning": false, |
| 100 | + "mix_returning": true, |
| 101 | + "modify_only_own_db_tables": false, |
154 | 102 | "msag_consistency": true,
|
155 |
| - "nesting": false, |
| 103 | + "nesting": true, |
156 | 104 | "names_no_dash": true,
|
157 |
| - "newline_between_methods": { |
158 |
| - "exclude": [], |
159 |
| - "severity": "Error", |
160 |
| - "count": 3, |
161 |
| - "logic": "less" |
162 |
| - }, |
| 105 | + "newline_between_methods": true, |
163 | 106 | "no_public_attributes": false,
|
| 107 | + "no_yoda_conditions": false, |
164 | 108 | "object_naming": false,
|
165 |
| - "obsolete_statement": { |
166 |
| - "exclude": [], |
167 |
| - "severity": "Error", |
168 |
| - "refresh": true, |
169 |
| - "compute": true, |
170 |
| - "add": false, |
171 |
| - "subtract": false, |
172 |
| - "multiply": true, |
173 |
| - "move": true, |
174 |
| - "divide": true, |
175 |
| - "requested": true, |
176 |
| - "occurs": true, |
177 |
| - "setExtended": true, |
178 |
| - "withHeaderLine": true, |
179 |
| - "fieldSymbolStructure": true, |
180 |
| - "typePools": true, |
181 |
| - "load": true |
182 |
| - }, |
183 |
| - "omit_parameter_name": false, |
| 109 | + "obsolete_statement": true, |
| 110 | + "omit_parameter_name": true, |
184 | 111 | "omit_receiving": true,
|
| 112 | + "parser_702_chaining": false, |
185 | 113 | "parser_error": true,
|
186 | 114 | "parser_missing_space": true,
|
187 | 115 | "prefer_inline": false,
|
188 |
| - "prefer_is_not": false, |
| 116 | + "prefer_is_not": true, |
| 117 | + "prefer_raise_exception_new": true, |
189 | 118 | "prefer_returning_to_exporting": true,
|
190 | 119 | "prefer_xsdbool": true,
|
191 |
| - "preferred_compare_operator": false, |
192 |
| - "prefix_is_current_class": false, |
| 120 | + "preferred_compare_operator": true, |
| 121 | + "prefix_is_current_class": true, |
193 | 122 | "reduce_string_templates": true,
|
194 | 123 | "release_idoc": true,
|
195 | 124 | "remove_descriptions": false,
|
196 |
| - "rfc_error_handling": false, |
197 |
| - "selection_screen_naming": { |
198 |
| - "exclude": [], |
199 |
| - "severity": "Error", |
200 |
| - "patternKind": "required", |
201 |
| - "ignoreNames": [], |
202 |
| - "ignorePatterns": [], |
203 |
| - "parameter": "^P_.+$", |
204 |
| - "selectOption": "^S_.+$" |
205 |
| - }, |
206 |
| - "sequential_blank": false, |
207 |
| - "short_case": { |
208 |
| - "exclude": [], |
209 |
| - "severity": "Error", |
210 |
| - "length": 1, |
211 |
| - "allow": [] |
| 125 | + "rfc_error_handling": true, |
| 126 | + "select_add_order_by": false, |
| 127 | + "select_performance": { |
| 128 | + "severity": "Warning" |
212 | 129 | },
|
| 130 | + "selection_screen_naming": false, |
| 131 | + "sequential_blank": true, |
| 132 | + "short_case": true, |
213 | 133 | "sicf_consistency": true,
|
214 | 134 | "space_before_colon": true,
|
215 |
| - "space_before_dot": { |
216 |
| - "exclude": [], |
217 |
| - "severity": "Error", |
218 |
| - "ignoreGlobalDefinition": true, |
219 |
| - "ignoreExceptions": true |
| 135 | + "space_before_dot": true, |
| 136 | + "sql_escape_host_variables": { |
| 137 | + "severity": "Warning" |
220 | 138 | },
|
221 |
| - "sql_escape_host_variables": false, |
222 |
| - "start_at_tab": false, |
| 139 | + "start_at_tab": true, |
223 | 140 | "superclass_final": true,
|
224 | 141 | "sy_modification": true,
|
225 | 142 | "tabl_enhancement_category": true,
|
226 | 143 | "try_without_catch": true,
|
227 | 144 | "type_form_parameters": true,
|
228 | 145 | "types_naming": false,
|
| 146 | + "uncaught_exception": false, |
229 | 147 | "unknown_types": true,
|
230 | 148 | "unreachable_code": true,
|
231 |
| - "unused_methods": false, |
| 149 | + "unsecure_fae": false, |
| 150 | + "unused_methods": true, |
232 | 151 | "unused_types": true,
|
233 |
| - "unused_variables": false, |
| 152 | + "unused_variables": { |
| 153 | + "severity": "Warning" |
| 154 | + }, |
234 | 155 | "use_bool_expression": true,
|
235 |
| - "use_line_exists": false, |
| 156 | + "use_class_based_exceptions": true, |
| 157 | + "use_line_exists": true, |
236 | 158 | "use_new": true,
|
237 | 159 | "when_others_last": true,
|
238 | 160 | "whitespace_end": true,
|
239 |
| - "xml_consistency": true |
| 161 | + "xml_consistency": true, |
| 162 | + "keyword_case": false |
240 | 163 | }
|
241 | 164 | }
|
0 commit comments