|
| 1 | +{ |
| 2 | + "global": { |
| 3 | + "files": "/src/**/*.*" |
| 4 | + }, |
| 5 | + "dependencies": [ |
| 6 | + { |
| 7 | + "url": "https://github.com/open-abap/open-abap", |
| 8 | + "files": "/src/**/*.*" |
| 9 | + } |
| 10 | + ], |
| 11 | + "syntax": { |
| 12 | + "version": "open-abap", |
| 13 | + "errorNamespace": "." |
| 14 | + }, |
| 15 | + "rules": { |
| 16 | + "7bit_ascii": true, |
| 17 | + "abapdoc": false, |
| 18 | + "align_parameters": true, |
| 19 | + "allowed_object_naming": true, |
| 20 | + "allowed_object_types": false, |
| 21 | + "ambiguous_statement": true, |
| 22 | + "avoid_use": true, |
| 23 | + "begin_end_names": true, |
| 24 | + "begin_single_include": true, |
| 25 | + "call_transaction_authority_check": true, |
| 26 | + "cds_parser_error": true, |
| 27 | + "chain_mainly_declarations": true, |
| 28 | + "check_abstract": true, |
| 29 | + "check_comments": false, |
| 30 | + "check_ddic": true, |
| 31 | + "check_include": true, |
| 32 | + "check_no_handler_pragma": true, |
| 33 | + "check_subrc": true, |
| 34 | + "check_syntax": true, |
| 35 | + "check_text_elements": true, |
| 36 | + "check_transformation_exists": true, |
| 37 | + "class_attribute_names": true, |
| 38 | + "cloud_types": true, |
| 39 | + "colon_missing_space": true, |
| 40 | + "commented_code": true, |
| 41 | + "constant_classes": { |
| 42 | + "exclude": [], |
| 43 | + "severity": "Error", |
| 44 | + "mapping": [] |
| 45 | + }, |
| 46 | + "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 | + }, |
| 78 | + "db_operation_in_loop": true, |
| 79 | + "definitions_top": true, |
| 80 | + "description_empty": true, |
| 81 | + "double_space": { |
| 82 | + "exclude": [], |
| 83 | + "severity": "Error", |
| 84 | + "keywords": true, |
| 85 | + "startParen": true, |
| 86 | + "endParen": true, |
| 87 | + "afterColon": true |
| 88 | + }, |
| 89 | + "downport": true, |
| 90 | + "empty_line_in_statement": { |
| 91 | + "exclude": [], |
| 92 | + "severity": "Error", |
| 93 | + "allowChained": false |
| 94 | + }, |
| 95 | + "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 | + }, |
| 114 | + "exporting": true, |
| 115 | + "forbidden_identifier": { |
| 116 | + "exclude": [], |
| 117 | + "severity": "Error", |
| 118 | + "check": [] |
| 119 | + }, |
| 120 | + "forbidden_pseudo_and_pragma": { |
| 121 | + "exclude": [], |
| 122 | + "severity": "Error", |
| 123 | + "pseudo": [], |
| 124 | + "pragmas": [], |
| 125 | + "ignoreGlobalClassDefinition": false, |
| 126 | + "ignoreGlobalInterface": false |
| 127 | + }, |
| 128 | + "forbidden_void_type": { |
| 129 | + "exclude": [], |
| 130 | + "severity": "Error", |
| 131 | + "check": [] |
| 132 | + }, |
| 133 | + "form_tables_obsolete": true, |
| 134 | + "fully_type_constants": true, |
| 135 | + "function_module_recommendations": true, |
| 136 | + "functional_writing": { |
| 137 | + "exclude": [], |
| 138 | + "severity": "Error", |
| 139 | + "ignoreExceptions": true |
| 140 | + }, |
| 141 | + "global_class": true, |
| 142 | + "identical_conditions": true, |
| 143 | + "identical_contents": true, |
| 144 | + "identical_descriptions": true, |
| 145 | + "identical_form_names": true, |
| 146 | + "if_in_if": true, |
| 147 | + "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 | + }, |
| 164 | + "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 | + }, |
| 192 | + "line_break_style": false, |
| 193 | + "line_length": { |
| 194 | + "exclude": [], |
| 195 | + "severity": "Error", |
| 196 | + "length": 120 |
| 197 | + }, |
| 198 | + "line_only_punc": { |
| 199 | + "exclude": [], |
| 200 | + "severity": "Error", |
| 201 | + "ignoreExceptions": true |
| 202 | + }, |
| 203 | + "local_class_naming": { |
| 204 | + "exclude": [], |
| 205 | + "severity": "Error", |
| 206 | + "patternKind": "required", |
| 207 | + "ignoreNames": [], |
| 208 | + "ignorePatterns": [], |
| 209 | + "local": "^LCL_.+$", |
| 210 | + "exception": "^LCX_.+$", |
| 211 | + "test": "^LTCL_.+$" |
| 212 | + }, |
| 213 | + "local_testclass_location": true, |
| 214 | + "local_variable_names": { |
| 215 | + "exclude": [], |
| 216 | + "severity": "Error", |
| 217 | + "patternKind": "required", |
| 218 | + "ignoreNames": [], |
| 219 | + "ignorePatterns": [], |
| 220 | + "expectedData": "^L._.+$", |
| 221 | + "expectedConstant": "^LC_.+$", |
| 222 | + "expectedFS": "^<L._.+>$" |
| 223 | + }, |
| 224 | + "main_file_contents": true, |
| 225 | + "many_parentheses": true, |
| 226 | + "max_one_method_parameter_per_line": true, |
| 227 | + "max_one_statement": true, |
| 228 | + "message_exists": true, |
| 229 | + "method_implemented_twice": true, |
| 230 | + "method_length": { |
| 231 | + "exclude": [], |
| 232 | + "severity": "Error", |
| 233 | + "statements": 100, |
| 234 | + "errorWhenEmpty": true, |
| 235 | + "ignoreTestClasses": false, |
| 236 | + "checkForms": true |
| 237 | + }, |
| 238 | + "method_overwrites_builtin": true, |
| 239 | + "method_parameter_names": true, |
| 240 | + "mix_returning": true, |
| 241 | + "modify_only_own_db_tables": true, |
| 242 | + "msag_consistency": true, |
| 243 | + "names_no_dash": true, |
| 244 | + "nesting": true, |
| 245 | + "newline_between_methods": true, |
| 246 | + "no_aliases": true, |
| 247 | + "no_chained_assignment": true, |
| 248 | + "no_public_attributes": { |
| 249 | + "exclude": [], |
| 250 | + "severity": "Error", |
| 251 | + "allowReadOnly": false |
| 252 | + }, |
| 253 | + "no_yoda_conditions": { |
| 254 | + "exclude": [], |
| 255 | + "severity": "Error", |
| 256 | + "onlyConstants": false |
| 257 | + }, |
| 258 | + "object_naming": { |
| 259 | + "exclude": [], |
| 260 | + "severity": "Error", |
| 261 | + "patternKind": "required", |
| 262 | + "ignoreNames": [], |
| 263 | + "ignorePatterns": [], |
| 264 | + "clas": "^ZC(L|X)", |
| 265 | + "intf": "^ZIF", |
| 266 | + "prog": "^Z", |
| 267 | + "fugr": "^Z", |
| 268 | + "tabl": "^Z", |
| 269 | + "ttyp": "^Z", |
| 270 | + "dtel": "^Z", |
| 271 | + "doma": "^Z", |
| 272 | + "msag": "^Z", |
| 273 | + "tran": "^Z", |
| 274 | + "enqu": "^EZ", |
| 275 | + "auth": "^Z", |
| 276 | + "pinf": "^Z", |
| 277 | + "idoc": "^Z", |
| 278 | + "xslt": "^Z", |
| 279 | + "ssfo": "^Z", |
| 280 | + "ssst": "^Z", |
| 281 | + "shlp": "^Z" |
| 282 | + }, |
| 283 | + "obsolete_statement": true, |
| 284 | + "omit_parameter_name": true, |
| 285 | + "omit_preceding_zeros": true, |
| 286 | + "omit_receiving": true, |
| 287 | + "parser_702_chaining": true, |
| 288 | + "parser_error": true, |
| 289 | + "parser_missing_space": true, |
| 290 | + "pragma_placement": true, |
| 291 | + "prefer_corresponding": true, |
| 292 | + "prefer_inline": true, |
| 293 | + "prefer_is_not": true, |
| 294 | + "prefer_raise_exception_new": true, |
| 295 | + "prefer_returning_to_exporting": true, |
| 296 | + "prefer_xsdbool": true, |
| 297 | + "preferred_compare_operator": true, |
| 298 | + "prefix_is_current_class": true, |
| 299 | + "reduce_string_templates": true, |
| 300 | + "release_idoc": true, |
| 301 | + "remove_descriptions": true, |
| 302 | + "rfc_error_handling": true, |
| 303 | + "select_add_order_by": true, |
| 304 | + "select_performance": true, |
| 305 | + "selection_screen_naming": true, |
| 306 | + "sequential_blank": true, |
| 307 | + "short_case": true, |
| 308 | + "sicf_consistency": true, |
| 309 | + "space_before_colon": true, |
| 310 | + "space_before_dot": { |
| 311 | + "exclude": [], |
| 312 | + "severity": "Error", |
| 313 | + "ignoreGlobalDefinition": true, |
| 314 | + "ignoreExceptions": true |
| 315 | + }, |
| 316 | + "sql_escape_host_variables": true, |
| 317 | + "start_at_tab": true, |
| 318 | + "static_call_via_instance": true, |
| 319 | + "superclass_final": true, |
| 320 | + "sy_modification": true, |
| 321 | + "tabl_enhancement_category": true, |
| 322 | + "try_without_catch": true, |
| 323 | + "type_form_parameters": true, |
| 324 | + "types_naming": true, |
| 325 | + "uncaught_exception": true, |
| 326 | + "unknown_types": true, |
| 327 | + "unnecessary_chaining": true, |
| 328 | + "unreachable_code": true, |
| 329 | + "unsecure_fae": true, |
| 330 | + "unused_ddic": true, |
| 331 | + "unused_methods": true, |
| 332 | + "unused_types": true, |
| 333 | + "unused_variables": true, |
| 334 | + "use_bool_expression": true, |
| 335 | + "use_class_based_exceptions": true, |
| 336 | + "use_line_exists": true, |
| 337 | + "use_new": true, |
| 338 | + "when_others_last": true, |
| 339 | + "whitespace_end": true, |
| 340 | + "xml_consistency": true |
| 341 | + } |
| 342 | +} |
0 commit comments