-
Notifications
You must be signed in to change notification settings - Fork 2
/
abaplint.json
202 lines (202 loc) · 5.98 KB
/
abaplint.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
{
"global": {
"files": "/src/**/*.*",
"skipGeneratedGatewayClasses": true,
"skipGeneratedPersistentClasses": true,
"skipGeneratedFunctionGroups": true
},
"syntax": {
"version": "v740sp08",
"errorNamespace": "",
"globalConstants": [],
"globalMacros": []
},
"dependencies": [
{
"url": "https://github.com/abaplint/deps",
"folder": "/deps",
"files": "/src/**/*.*"
}
],
"rules": {
"7bit_ascii": true,
"avoid_use": {
"define": true,
"endselect": true,
"execSQL": true,
"kernelCall": true,
"communication": true,
"statics": true,
"systemCall": true,
"break": true,
"defaultKey": true
},
"check_syntax": false,
"cloud_types": true,
"commented_code": true,
"constructor_visibility_public": {
"reason": "https://github.com/SAP/styleguides/blob/master/clean-abap/CleanABAP.md#if-your-global-class-is-create-private-leave-the-constructor-public"
},
"definitions_top": true,
"description_empty": true,
"empty_line_in_statement": {
"allowChained": true
},
"empty_statement": true,
"empty_structure": {
"loop": true,
"if": true,
"while": true,
"case": true,
"select": true,
"do": true,
"at": true
},
"exit_or_check": true,
"exporting": {
"reason": "https://github.com/SAP/styleguides/blob/master/clean-abap/CleanABAP.md#omit-the-optional-keyword-exporting"
},
"functional_writing": {
"ignoreExceptions": true
},
"global_class": true,
"identical_form_names": true,
"if_in_if": {
"reason": "https://github.com/SAP/styleguides/blob/master/clean-abap/CleanABAP.md#keep-the-nesting-depth-low"
},
"inline_data_old_versions": true,
"keyword_case": {
"style": "lower",
"ignoreExceptions": false,
"ignoreLowerClassImplmentationStatement": false,
"ignoreGlobalClassDefinition": false,
"ignoreGlobalInterface": false,
"ignoreFunctionModuleName": false
},
"line_length": {
"length": 120,
"reason": "https://github.com/SAP/styleguides/blob/master/clean-abap/CleanABAP.md#stick-to-a-reasonable-line-length"
},
"local_class_naming": {
"local": "^LCL_.*$",
"test": "^(LTC|LCL)_.*$",
"exception": "^LCX_.*$"
},
"max_one_statement": {
"reason": "https://github.com/SAP/styleguides/blob/master/clean-abap/CleanABAP.md#no-more-than-one-statement-per-line"
},
"message_exists": true,
"method_length": {
"statements": 40,
"ignoreTestClasses": true,
"reason": "https://github.com/SAP/styleguides/blob/master/clean-abap/CleanABAP.md#keep-methods-small",
"errorWhenEmpty": true
},
"mix_returning": {
"reason": "https://github.com/SAP/styleguides/blob/master/clean-abap/CleanABAP.md#use-either-returning-or-exporting-or-changing-but-not-a-combination"
},
"msag_consistency": true,
"nesting": {
"depth": 5,
"reason": "https://github.com/SAP/styleguides/blob/master/clean-abap/CleanABAP.md#keep-the-nesting-depth-low"
},
"no_public_attributes": {
"allowReadOnly": true,
"reason": "https://github.com/SAP/styleguides/blob/master/clean-abap/CleanABAP.md#use-read-only-sparingly"
},
"object_naming": {
"clas": "^ZC(L|X)\\_",
"intf": "^ZIF\\_",
"prog": "^Z",
"fugr": "^Z",
"tabl": "^Z",
"ttyp": "^Z",
"dtel": "^Z",
"doma": "^Z",
"msag": "^Z",
"tran": "^Z",
"enqu": "^EZ",
"auth": "^Z",
"pinf": "^Z",
"idoc": "^Z",
"xslt": "^Z"
},
"obsolete_statement": {
"refresh": true,
"compute": true,
"add": true,
"subtract": true,
"multiply": true,
"move": true,
"divide": true,
"requested": true,
"occurs": true
},
"parser_error": true,
"preferred_compare_operator": {
"badOperators": [
"EQ",
"><",
"NE",
"GE",
"GT",
"LT",
"LE"
]
},
"remove_descriptions": {
"ignoreExceptions": false
},
"sequential_blank": {
"lines": 4
},
"short_case": {
"length": 1,
"allow": []
},
"start_at_tab": true,
"tabl_enhancement_category": false,
"unreachable_code": true,
"use_new": true,
"when_others_last": true,
"whitespace_end": true,
"ambiguous_statement": true,
"begin_end_names": true,
"check_transformation_exists": true,
"form_tables_obsolete": true,
"implement_methods": false,
"local_testclass_location": false,
"main_file_contents": true,
"type_form_parameters": true,
"rfc_error_handling": true,
"abapdoc": true,
"form_no_dash": true,
"release_idoc": true,
"prefer_returning_to_exporting": true,
"keep_single_parameter_on_one_line": {
"length": 120
},
"chain_mainly_declarations": true,
"fully_type_constants": true,
"check_abstract": true,
"check_comments": {
"allowEndOfLine": true
},
"selection_screen_naming": {
"selectOption": "^s_.+$",
"parameter": "^p_.+$",
"patternKind": "required"
},
"check_text_elements": true,
"check_ddic": false,
"newline_between_methods": {
"logic": "less",
"count": 3
},
"check_include": false,
"xml_consistency": true,
"prefix_is_current_class": {
"omitMeInstanceCalls": false
}
}
}