Skip to content

Commit ca858be

Browse files
authored
Create abaplint.json (#132)
* Create abaplint.json * ignore * Update abaplint.json * Update abaplint.json * fixes * fixes * downport
1 parent d62d988 commit ca858be

12 files changed

+317
-46
lines changed

.abapgit.xml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<item>/README.md</item>
1212
<item>/package.json</item>
1313
<item>/.travis.yml</item>
14+
<item>/abaplint.json</item>
1415
</IGNORE>
1516
</DATA>
1617
</asx:values>

abaplint.json

+310
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,310 @@
1+
{
2+
"global": {
3+
"version": "v702",
4+
"skipGeneratedGatewayClasses": true,
5+
"skipGeneratedPersistentClasses": true,
6+
"skipGeneratedFunctionGroups": true,
7+
"applyUnspecifiedRules": true
8+
},
9+
"rules": {
10+
"7bit_ascii": {
11+
"enabled": true,
12+
"exclude": []
13+
},
14+
"avoid_use": {
15+
"enabled": true,
16+
"exclude": [],
17+
"define": false,
18+
"endselect": true,
19+
"execSQL": true,
20+
"kernelCall": true
21+
},
22+
"breakpoint": {
23+
"enabled": true,
24+
"exclude": []
25+
},
26+
"check_variables": {
27+
"enabled": false,
28+
"exclude": []
29+
},
30+
"class_attribute_names": {
31+
"enabled": true,
32+
"exclude": [],
33+
"ignoreExceptions": true,
34+
"statics": "^G._.*$",
35+
"instance": "^M._.*$"
36+
},
37+
"cloud_types": {
38+
"enabled": true,
39+
"exclude": []
40+
},
41+
"colon_missing_space": {
42+
"enabled": true,
43+
"exclude": []
44+
},
45+
"commented_code": {
46+
"enabled": true,
47+
"exclude": []
48+
},
49+
"constructor_visibility_public": {
50+
"enabled": true,
51+
"exclude": []
52+
},
53+
"contains_tab": {
54+
"enabled": true,
55+
"exclude": []
56+
},
57+
"definitions_top": {
58+
"enabled": true,
59+
"exclude": []
60+
},
61+
"description_empty": {
62+
"enabled": true,
63+
"exclude": []
64+
},
65+
"double_space": {
66+
"enabled": true,
67+
"exclude": [],
68+
"keywords": true,
69+
"startParen": true,
70+
"endParen": true
71+
},
72+
"empty_line_in_statement": {
73+
"enabled": true,
74+
"exclude": [],
75+
"allowChained": false
76+
},
77+
"empty_statement": {
78+
"enabled": true,
79+
"exclude": []
80+
},
81+
"empty_structure": {
82+
"enabled": true,
83+
"exclude": [],
84+
"loop": true,
85+
"if": true,
86+
"while": true,
87+
"case": true,
88+
"select": true,
89+
"do": true,
90+
"at": true
91+
},
92+
"exit_or_check": {
93+
"enabled": true,
94+
"exclude": []
95+
},
96+
"exporting": {
97+
"enabled": true,
98+
"exclude": []
99+
},
100+
"functional_writing": {
101+
"enabled": true,
102+
"exclude": [],
103+
"ignoreExceptions": true
104+
},
105+
"global_class": {
106+
"enabled": true,
107+
"exclude": []
108+
},
109+
"identical_form_names": {
110+
"enabled": true,
111+
"exclude": []
112+
},
113+
"if_in_if": {
114+
"enabled": true,
115+
"exclude": []
116+
},
117+
"in_statement_indentation": {
118+
"enabled": true,
119+
"exclude": [],
120+
"ignoreExceptions": true
121+
},
122+
"indentation": {
123+
"enabled": true,
124+
"exclude": [],
125+
"ignoreExceptions": true,
126+
"alignTryCatch": false,
127+
"globalClassSkipFirst": false,
128+
"ignoreGlobalClassDefinition": false,
129+
"ignoreGlobalInterface": false
130+
},
131+
"inline_data_old_versions": {
132+
"enabled": true,
133+
"exclude": []
134+
},
135+
"keywords_upper": {
136+
"enabled": true,
137+
"exclude": [],
138+
"ignoreExceptions": true,
139+
"ignoreLowerClassImplmentationStatement": true,
140+
"ignoreGlobalClassDefinition": false,
141+
"ignoreGlobalInterface": false,
142+
"ignoreFunctionModuleName": false
143+
},
144+
"line_length": {
145+
"enabled": true,
146+
"exclude": [],
147+
"length": 120
148+
},
149+
"line_only_punc": {
150+
"enabled": true,
151+
"exclude": [],
152+
"ignoreExceptions": true
153+
},
154+
"local_class_naming": {
155+
"enabled": true,
156+
"exclude": [],
157+
"local": "^LCL_.*$",
158+
"test": "^LTCL_.*$"
159+
},
160+
"local_variable_names": {
161+
"enabled": true,
162+
"exclude": [],
163+
"expectedData": "^L._.*$",
164+
"expectedConstant": "^LC_.*$",
165+
"expectedFS": "^<L._.*>$"
166+
},
167+
"max_one_statement": {
168+
"enabled": true,
169+
"exclude": []
170+
},
171+
"message_exists": {
172+
"enabled": true,
173+
"exclude": []
174+
},
175+
"method_length": {
176+
"enabled": true,
177+
"exclude": [],
178+
"statements": 100
179+
},
180+
"method_parameter_names": {
181+
"enabled": true,
182+
"exclude": [],
183+
"ignoreExceptions": true,
184+
"importing": "^I._.*$",
185+
"returning": "^R._.*$",
186+
"changing": "^C._.*$",
187+
"exporting": "^E._.*$",
188+
"ignoreNames": [
189+
"P_TASK"
190+
]
191+
},
192+
"mix_returning": {
193+
"enabled": true,
194+
"exclude": []
195+
},
196+
"msag_consistency": {
197+
"enabled": true,
198+
"exclude": []
199+
},
200+
"nesting": {
201+
"enabled": true,
202+
"exclude": [],
203+
"depth": 5
204+
},
205+
"no_public_attributes": {
206+
"enabled": true,
207+
"exclude": []
208+
},
209+
"object_naming": {
210+
"enabled": true,
211+
"exclude": [],
212+
"clas": "^ZC(L|X)\\_",
213+
"intf": "^ZIF\\_",
214+
"prog": "^Z",
215+
"fugr": "^Z",
216+
"tabl": "^Z",
217+
"ttyp": "^Z",
218+
"dtel": "^Z",
219+
"doma": "^Z",
220+
"msag": "^Z",
221+
"tran": "^Z",
222+
"enqu": "^EZ",
223+
"auth": "^Z",
224+
"pinf": "^Z"
225+
},
226+
"obsolete_statement": {
227+
"enabled": true,
228+
"exclude": [],
229+
"refresh": true,
230+
"compute": true,
231+
"add": true,
232+
"subtract": true,
233+
"multiply": true,
234+
"move": true,
235+
"divide": true,
236+
"requested": true
237+
},
238+
"parser_error": {
239+
"enabled": true,
240+
"exclude": []
241+
},
242+
"preferred_compare_operator": {
243+
"enabled": true,
244+
"exclude": [],
245+
"badOperators": [
246+
"EQ",
247+
"><",
248+
"NE",
249+
"GE",
250+
"GT",
251+
"LT",
252+
"LE"
253+
]
254+
},
255+
"remove_descriptions": {
256+
"enabled": true,
257+
"exclude": [],
258+
"ignoreExceptions": false
259+
},
260+
"sequential_blank": {
261+
"enabled": true,
262+
"exclude": [],
263+
"lines": 4
264+
},
265+
"short_case": {
266+
"enabled": true,
267+
"exclude": [],
268+
"length": 1,
269+
"allow": []
270+
},
271+
"space_before_colon": {
272+
"enabled": true,
273+
"exclude": []
274+
},
275+
"space_before_dot": {
276+
"enabled": true,
277+
"exclude": [],
278+
"ignoreGlobalDefinition": true,
279+
"ignoreExceptions": true
280+
},
281+
"start_at_tab": {
282+
"enabled": true,
283+
"exclude": []
284+
},
285+
"superclass_final": {
286+
"enabled": false,
287+
"exclude": []
288+
},
289+
"tabl_enhancement_category": {
290+
"enabled": true,
291+
"exclude": []
292+
},
293+
"unreachable_code": {
294+
"enabled": true,
295+
"exclude": []
296+
},
297+
"use_new": {
298+
"enabled": true,
299+
"exclude": []
300+
},
301+
"when_others_last": {
302+
"enabled": true,
303+
"exclude": []
304+
},
305+
"whitespace_end": {
306+
"enabled": true,
307+
"exclude": []
308+
}
309+
}
310+
}

src/backend/zcl_ags_cache.clas.testclasses.abap

+1-1
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ CLASS ltcl_bubble_dir IMPLEMENTATION.
448448

449449
cl_abap_unit_assert=>assert_equals(
450450
act = lines( lt_files )
451-
exp = 2 ).
451+
exp = 2 ).
452452

453453
LOOP AT lt_files ASSIGNING <ls_file>.
454454
cl_abap_unit_assert=>assert_equals(

src/backend/zcl_ags_file_operations.clas.xml

-14
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,6 @@
1212
<UNICODE>X</UNICODE>
1313
<WITH_UNIT_TESTS>X</WITH_UNIT_TESTS>
1414
</VSEOCLASS>
15-
<DESCRIPTIONS>
16-
<SEOCOMPOTX>
17-
<CLSNAME>ZCL_AGS_FILE_OPERATIONS</CLSNAME>
18-
<CMPNAME>MO_BRANCH</CMPNAME>
19-
<LANGU>E</LANGU>
20-
<DESCRIPT>Branch</DESCRIPT>
21-
</SEOCOMPOTX>
22-
<SEOCOMPOTX>
23-
<CLSNAME>ZCL_AGS_FILE_OPERATIONS</CLSNAME>
24-
<CMPNAME>TY_TREE</CMPNAME>
25-
<LANGU>E</LANGU>
26-
<DESCRIPT>Single-Character Flag</DESCRIPT>
27-
</SEOCOMPOTX>
28-
</DESCRIPTIONS>
2915
</asx:values>
3016
</asx:abap>
3117
</abapGit>

src/database/zcl_ags_db_branches.clas.abap

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
CLASS zcl_ags_db_branches DEFINITION
22
PUBLIC
33
CREATE PRIVATE
4-
54
GLOBAL FRIENDS zcl_ags_db .
65

76
PUBLIC SECTION.
@@ -37,7 +36,7 @@ CLASS zcl_ags_db_branches DEFINITION
3736
DATA mt_branches TYPE zags_branches_tt .
3837
DATA mv_fake TYPE abap_bool .
3938

40-
METHODS set_fake ##RELAX.
39+
METHODS set_fake ##RELAX.
4140
ENDCLASS.
4241

4342

src/database/zcl_ags_db_branches.clas.xml

-8
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@
1111
<FIXPT>X</FIXPT>
1212
<UNICODE>X</UNICODE>
1313
</VSEOCLASS>
14-
<DESCRIPTIONS>
15-
<SEOCOMPOTX>
16-
<CLSNAME>ZCL_AGS_DB_BRANCHES</CLSNAME>
17-
<CMPNAME>MT_BRANCHES</CMPNAME>
18-
<LANGU>E</LANGU>
19-
<DESCRIPT>ZAGS_REPOS Table Type</DESCRIPT>
20-
</SEOCOMPOTX>
21-
</DESCRIPTIONS>
2214
</asx:values>
2315
</asx:abap>
2416
</abapGit>

src/database/zcl_ags_db_objects.clas.abap

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
CLASS zcl_ags_db_objects DEFINITION
22
PUBLIC
33
CREATE PRIVATE
4-
54
GLOBAL FRIENDS zcl_ags_db .
65

76
PUBLIC SECTION.

src/database/zcl_ags_db_repos.clas.abap

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
CLASS zcl_ags_db_repos DEFINITION
22
PUBLIC
33
CREATE PRIVATE
4-
54
GLOBAL FRIENDS zcl_ags_db .
65

76
PUBLIC SECTION.

0 commit comments

Comments
 (0)