-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathminedRules_MicroProfile.json
329 lines (329 loc) · 12 KB
/
minedRules_MicroProfile.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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
[
{
"id": 1221320704,
"antecedent": [
"Annotation_org.eclipse.microprofile.openapi.annotations.responses.APIResponse --(hasParam)--> Param_responseCode:java.lang.String",
"Method --(annotatedWith)--> Annotation_org.eclipse.microprofile.openapi.annotations.responses.APIResponse",
"Class --(annotatedWith)--> Annotation_javax.ws.rs.Path",
"Annotation_org.eclipse.microprofile.openapi.annotations.responses.APIResponse --(hasParam)--> Param_description:java.lang.String",
"Method --(annotatedWith)--> Annotation_org.eclipse.microprofile.openapi.annotations.Operation"
],
"consequent": [
"Annotation_javax.ws.rs.Path --(hasParam)--> Param_value:java.lang.String"
],
"label": "not a rule",
"sameAs": 0
},
{
"id": 1289748777,
"antecedent": [
"Method --(annotatedWith)--> Annotation_org.eclipse.microprofile.metrics.annotation.SimplyTimed",
"Method --(hasParam)--> Param_java.lang.String"
],
"consequent": [
"Annotation_org.eclipse.microprofile.metrics.annotation.SimplyTimed --(hasParam)--> Param_name:java.lang.String"
],
"label": "not a rule",
"sameAs": 0
},
{
"id": 1304741815,
"antecedent": [
"Class --(annotatedWith)--> Annotation_javax.persistence.Entity",
"Class --(annotatedWith)--> Annotation_org.eclipse.microprofile.graphql.Type",
"Annotation_org.eclipse.microprofile.openapi.annotations.media.Schema --(hasParam)--> Param_name:java.lang.String",
"Annotation_org.eclipse.microprofile.openapi.annotations.media.Schema --(hasParam)--> Param_title:java.lang.String",
"Class --(annotatedWith)--> Annotation_org.eclipse.microprofile.openapi.annotations.media.Schema"
],
"consequent": [
"Annotation_javax.persistence.Entity --(hasParam)--> Param_name:java.lang.String"
],
"label": "not a rule",
"sameAs": 0
},
{
"id": -920189675,
"antecedent": [
"Class --(annotatedWith)--> Annotation_javax.ws.rs.ApplicationPath",
"Annotation_org.eclipse.microprofile.auth.LoginConfig --(hasParam)--> Param_authMethod:java.lang.String",
"Annotation_javax.ws.rs.Path --(hasParam)--> Param_value:java.lang.String",
"Class --(annotatedWith)--> Annotation_javax.ws.rs.Path",
"Annotation_javax.ws.rs.ApplicationPath --(hasParam)--> Param_value:java.lang.String",
"Annotation_org.eclipse.microprofile.auth.LoginConfig --(hasParam)--> Param_realmName:java.lang.String",
"Class --(annotatedWith)--> Annotation_org.eclipse.microprofile.auth.LoginConfig",
"Class --(annotatedWith)--> Annotation_javax.enterprise.context.RequestScoped"
],
"consequent": [
"Class --(extends)--> Class_javax.ws.rs.core.Application"
],
"label": "not a rule",
"sameAs": 0
},
{
"id": 1364002759,
"antecedent": [
"Annotation_javax.ws.rs.Path --(hasParam)--> Param_value:java.lang.String",
"Method --(annotatedWith)--> Annotation_org.eclipse.microprofile.openapi.annotations.responses.APIResponses",
"Method --(annotatedWith)--> Annotation_org.eclipse.microprofile.openapi.annotations.Operation"
],
"consequent": [
"Class --(annotatedWith)--> Annotation_javax.ws.rs.Path"
],
"label": "not a rule",
"sameAs": 0
},
{
"id": -491397731,
"antecedent": [
"Method --(annotatedWith)--> Annotation_org.eclipse.microprofile.reactive.messaging.Outgoing"
],
"consequent": [
"Class --(annotatedWith)--> Annotation_javax.enterprise.context.ApplicationScoped"
],
"label": "partially correct rule",
"distance": 1,
"distanceComments": [
"ADD 1 'Application --(hasBeans)--> beans.xml'"
],
"sameAs": 0
},
{
"id": -1207560480,
"antecedent": [
"Method --(annotatedWith)--> Annotation_org.eclipse.microprofile.graphql.Mutation"
],
"consequent": [
"Class --(annotatedWith)--> Annotation_org.eclipse.microprofile.graphql.GraphQLApi"
],
"label": "rule",
"sameAs": 0
},
{
"id": 1043234021,
"antecedent": [
"Annotation_org.eclipse.microprofile.metrics.annotation.Gauge --(hasParam)--> Param_unit:java.lang.String",
"Method --(annotatedWith)--> Annotation_org.eclipse.microprofile.metrics.annotation.Gauge"
],
"consequent": [
"Annotation_org.eclipse.microprofile.metrics.annotation.Gauge --(hasParam)--> Param_name:java.lang.String"
],
"label": "not a rule",
"sameAs": 0
},
{
"id": -941711638,
"antecedent": [
"Field --(annotatedWith)--> Annotation_org.eclipse.microprofile.metrics.annotation.RegistryType",
"Annotation_org.eclipse.microprofile.metrics.annotation.RegistryType --(hasParam)--> Param_type:org.eclipse.microprofile.metrics.MetricRegistry.Type",
"Field --(annotatedWith)--> Annotation_javax.inject.Inject"
],
"consequent": [
"Field --(hasType)--> org.eclipse.microprofile.metrics.MetricRegistry"
],
"label": "rule",
"sameAs": 0
},
{
"id": -2017401994,
"antecedent": [
"Class --(annotatedWith)--> Annotation_javax.enterprise.context.ApplicationScoped",
"Class --(annotatedWith)--> Annotation_org.eclipse.microprofile.health.Health"
],
"consequent": [
"Class --(implements)--> Interface_org.eclipse.microprofile.health.HealthCheck"
],
"label": "partially correct rule",
"distance": 1,
"distanceComments": [
"REMOVE 1 `Class --(annotatedWith)--> Annotation_javax.enterprise.context.ApplicationScoped`"
],
"sameAs": 0
},
{
"id": -359885871,
"antecedent": [
"Field --(annotatedWith)--> Annotation_org.eclipse.microprofile.config.inject.ConfigProperty",
"Field --(annotatedWith)--> Annotation_javax.inject.Inject"
],
"consequent": [
"Annotation_org.eclipse.microprofile.config.inject.ConfigProperty --(hasParam)--> Param_name:java.lang.String"
],
"label": "partially correct rule",
"distance": 2,
"distanceComments": [
"REMOVE 1 `Annotation_org.eclipse.microprofile.config.inject.ConfigProperty --(hasParam)--> Param_name:java.lang.String`",
"MOVE 1 'Field --(annotatedWith)--> Annotation_javax.inject.Inject' to cons"
],
"sameAs": 0
},
{
"id": 1447599065,
"antecedent": [
"Method --(annotatedWith)--> Annotation_org.eclipse.microprofile.graphql.Query"
],
"consequent": [
"Class --(annotatedWith)--> Annotation_org.eclipse.microprofile.graphql.GraphQLApi"
],
"label": "rule",
"sameAs": 0
},
{
"id": -848093747,
"antecedent": [
"Annotation_org.eclipse.microprofile.openapi.annotations.responses.APIResponse --(hasParam)--> Param_responseCode:java.lang.String",
"Method --(annotatedWith)--> Annotation_org.eclipse.microprofile.openapi.annotations.responses.APIResponse",
"Annotation_javax.ws.rs.Path --(hasParam)--> Param_value:java.lang.String",
"Class --(annotatedWith)--> Annotation_javax.ws.rs.Path",
"Method --(annotatedWith)--> Annotation_org.eclipse.microprofile.openapi.annotations.Operation"
],
"consequent": [
"Method --(hasReturnType)--> javax.ws.rs.core.Response"
],
"label": "not a rule",
"sameAs": 0
},
{
"id": -375827261,
"antecedent": [
"Class --(annotatedWith)--> Annotation_org.eclipse.microprofile.rest.client.inject.RegisterRestClient",
"Annotation_javax.ws.rs.Path --(hasParam)--> Param_value:java.lang.String",
"Method --(annotatedWith)--> Annotation_javax.ws.rs.Path"
],
"consequent": [
"Class --(annotatedWith)--> Annotation_org.eclipse.microprofile.rest.client.annotation.RegisterClientHeaders"
],
"label": "partially correct rule",
"distance": 4,
"distanceComments": [
"REMOVE 1 `Annotation_javax.ws.rs.Path --(hasParam)--> Param_value:java.lang.String`",
"REMOVE 1 `Class --(annotatedWith)--> Annotation_org.eclipse.microprofile.rest.client.annotation.RegisterClientHeaders`",
"MOVE 1 'Method --(annotatedWith)--> Annotation_javax.ws.rs.Path' to cons",
"ADD 1 'Class --(annotatedWith)--> Annotation_javax.ws.rs.Path'"
],
"sameAs": 0
},
{
"id": 2143825194,
"antecedent": [
"Class --(annotatedWith)--> Annotation_javax.enterprise.context.ApplicationScoped",
"Class --(annotatedWith)--> Annotation_org.eclipse.microprofile.health.Readiness"
],
"consequent": [
"Class --(implements)--> Interface_org.eclipse.microprofile.health.HealthCheck"
],
"label": "partially correct rule",
"distance": 1,
"distanceComments": [
"REMOVE 1 'Class --(annotatedWith)--> Annotation_javax.enterprise.context.ApplicationScoped'"
],
"sameAs": 0
},
{
"id": -1707152331,
"antecedent": [
"Class --(annotatedWith)--> Annotation_javax.ws.rs.Path",
"Class --(annotatedWith)--> Annotation_org.eclipse.microprofile.openapi.annotations.OpenAPIDefinition",
"Annotation_org.eclipse.microprofile.openapi.annotations.OpenAPIDefinition --(hasParam)--> Param_info:"
],
"consequent": [
"Annotation_javax.ws.rs.Path --(hasParam)--> Param_value:java.lang.String"
],
"label": "not a rule",
"sameAs": 0
},
{
"id": -2075306354,
"antecedent": [
"Class --(annotatedWith)--> Annotation_org.eclipse.microprofile.health.Liveness"
],
"consequent": [
"Class --(implements)--> Interface_org.eclipse.microprofile.health.HealthCheck"
],
"label": "rule",
"sameAs": 0
},
{
"id": -358877541,
"antecedent": [
"Class --(annotatedWith)--> Annotation_org.eclipse.microprofile.openapi.annotations.tags.Tag",
"Class --(annotatedWith)--> Annotation_javax.ws.rs.Path",
"Annotation_org.eclipse.microprofile.openapi.annotations.tags.Tag --(hasParam)--> Param_name:java.lang.String"
],
"consequent": [
"Annotation_javax.ws.rs.Path --(hasParam)--> Param_value:java.lang.String"
],
"label": "not a rule",
"sameAs": 0
},
{
"id": -655205417,
"antecedent": [
"Method --(annotatedWith)--> Annotation_org.eclipse.microprofile.reactive.messaging.Incoming"
],
"consequent": [
"Class --(annotatedWith)--> Annotation_javax.enterprise.context.ApplicationScoped"
],
"label": "partially correct rule",
"distance": 1,
"distanceComments": [
"ADD 1 `Application --(hasBeans)--> beans.xml`"
],
"sameAs": 0
},
{
"id": -240494216,
"antecedent": [
"Field --(annotatedWith)--> Annotation_javax.inject.Inject"
],
"consequent": [
"Field --(annotatedWith)--> Annotation_org.eclipse.microprofile.rest.client.inject.RestClient"
],
"label": "partially correct rule",
"distance": 2,
"distanceComments": [
"MOVE 1 `Field --(annotatedWith)--> Annotation_org.eclipse.microprofile.rest.client.inject.RestClient",
"MOVE 1 'Field --(annotatedWith)--> Annotation_javax.inject.Inject' to cons"
],
"sameAs": 0
},
{
"id": 2015616826,
"antecedent": [
"Class --(annotatedWith)--> Annotation_org.eclipse.microprofile.rest.client.inject.RegisterRestClient",
"Class --(annotatedWith)--> Annotation_org.eclipse.microprofile.rest.client.annotation.RegisterProvider"
],
"consequent": [
"Annotation_org.eclipse.microprofile.rest.client.annotation.RegisterProvider --(hasParam)--> Param_value:java.lang.Class"
],
"label": "not a rule",
"sameAs": 0
},
{
"id": -821742361,
"antecedent": [
"Field --(annotatedWith)--> Annotation_javax.inject.Inject"
],
"consequent": [
"Field --(annotatedWith)--> Annotation_org.eclipse.microprofile.metrics.annotation.Metric"
],
"label": "not a rule",
"sameAs": 0
},
{
"id": 103768631,
"antecedent": [
"Field --(annotatedWith)--> Annotation_javax.inject.Inject",
"Field --(annotatedWith)--> Annotation_org.eclipse.microprofile.jwt.Claim"
],
"consequent": [
"Class --(annotatedWith)--> Annotation_javax.ws.rs.Path"
],
"label": "partially correct rule",
"distance": 2,
"distanceComments": [
"REMOVE 1 `Class --(annotatedWith)--> Annotation_javax.ws.rs.Path`",
"MOVE 1 `Field --(annotatedWith)--> Annotation_javax.inject.Inject` to cons"
],
"sameAs": 0
}
]