@grexx/grexxlinter 0.2.326 → 0.2.348

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/cli.js +186 -9
  2. package/lsp.js +122 -5
  3. package/package.json +1 -1
  4. package/schemas/.coverage.json +75 -714
  5. package/schemas/activity.schema.json +0 -19
  6. package/schemas/activityAttribute.schema.json +0 -17
  7. package/schemas/activityRight.schema.json +2 -8
  8. package/schemas/attribute.schema.json +2 -17
  9. package/schemas/casetype.schema.json +0 -1
  10. package/schemas/catchBlock.schema.json +12 -5
  11. package/schemas/conditionList.schema.json +69 -50
  12. package/schemas/container.schema.json +57 -74
  13. package/schemas/customThrow.schema.json +11 -3
  14. package/schemas/dataset.schema.json +0 -52
  15. package/schemas/datasetColumn.schema.json +0 -114
  16. package/schemas/datasetCondition.schema.json +0 -77
  17. package/schemas/datasetRight.schema.json +0 -2
  18. package/schemas/directRole.schema.json +0 -7
  19. package/schemas/folderInfo.schema.json +45 -0
  20. package/schemas/forEach.schema.json +42 -27
  21. package/schemas/formAction.schema.json +1 -17
  22. package/schemas/formActionInlineJavascript.schema.json +49 -54
  23. package/schemas/formGroup.schema.json +71 -82
  24. package/schemas/formRight.schema.json +0 -2
  25. package/schemas/formfield.schema.json +0 -40
  26. package/schemas/gridActivity.schema.json +59 -78
  27. package/schemas/gridColumn.schema.json +107 -144
  28. package/schemas/ifthenelse.schema.json +0 -10
  29. package/schemas/indirectRole.schema.json +0 -7
  30. package/schemas/jobStep.schema.json +47 -64
  31. package/schemas/mapping.schema.json +33 -43
  32. package/schemas/menuItem.schema.json +43 -56
  33. package/schemas/menuItemRight.schema.json +45 -71
  34. package/schemas/metadata.schema.json +3 -18
  35. package/schemas/notCondition.schema.json +45 -66
  36. package/schemas/parallelBlock.schema.json +55 -60
  37. package/schemas/picklist.schema.json +1 -2
  38. package/schemas/picklistItem.schema.json +49 -55
  39. package/schemas/platformAttribute.schema.json +0 -22
  40. package/schemas/platformRole.schema.json +0 -11
  41. package/schemas/plugin.schema.json +71 -77
  42. package/schemas/pluginLibrary.schema.json +0 -2
  43. package/schemas/requestContext.schema.json +10 -0
  44. package/schemas/securityProfile.schema.json +53 -47
  45. package/schemas/securityRequirement.schema.json +52 -47
  46. package/schemas/simpleCondition.schema.json +0 -10
  47. package/schemas/template/date-function.schema.json +1 -0
  48. package/schemas/template/html.schema.json +1 -0
  49. package/schemas/template/if.schema.json +1 -0
  50. package/schemas/template/iterator.schema.json +1 -0
  51. package/schemas/template/multivalue.schema.json +1 -0
  52. package/schemas/template/picklist.schema.json +1 -0
  53. package/schemas/template/util.schema.json +4 -0
  54. package/schemas/template.schema.json +1 -2
  55. package/schemas/trigger.schema.json +131 -68
  56. package/schemas/tryBlock.schema.json +12 -5
  57. package/schemas/view.schema.json +0 -17
  58. package/schemas/while.schema.json +23 -43
  59. package/schemas/widget.schema.json +0 -463
  60. package/schemas/widgetRight.schema.json +1 -2
@@ -1,63 +1,68 @@
1
1
  {
2
- "$id" : "https://grexx.net/studio-next/schemas/securityRequirement.schema.json",
3
- "$schema" : "https://json-schema.org/draft/2020-12/schema",
4
- "additionalProperties" : false,
5
- "properties" : {
6
- "_id" : {
7
- "type" : "string"
8
- },
9
- "_interfaceID" : {
10
- "type" : "string"
11
- },
12
- "_isInterface" : {
13
- "type" : "boolean"
14
- },
15
- "_knownIDs" : {
16
- "items" : {
17
- "type" : "string"
2
+ "$id": "https://grexx.net/studio-next/schemas/securityRequirement.schema.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "_id": {
7
+ "type": "string"
8
+ },
9
+ "_interfaceID": {
10
+ "type": "string"
11
+ },
12
+ "_isInterface": {
13
+ "type": "boolean"
14
+ },
15
+ "_knownIDs": {
16
+ "items": {
17
+ "type": "string"
18
18
  },
19
- "type" : "array"
19
+ "type": "array"
20
20
  },
21
- "_origin" : {
22
- "type" : "string"
21
+ "_origin": {
22
+ "type": "string"
23
23
  },
24
- "_src" : {
25
- "type" : "string"
24
+ "_src": {
25
+ "type": "string"
26
26
  },
27
- "_type" : {
28
- "const" : "securityRequirement"
27
+ "_type": {
28
+ "const": "securityRequirement"
29
29
  },
30
- "_uid" : {
31
- "description" : "Deterministic UUID derived from case-ID.",
32
- "format" : "uuid",
33
- "type" : "string"
30
+ "_uid": {
31
+ "description": "Deterministic UUID derived from case-ID.",
32
+ "format": "uuid",
33
+ "type": "string"
34
34
  },
35
- "description" : {
36
- "$ref" : "template/inlineTemplate.schema.json"
35
+ "description": {
36
+ "$ref": "template/inlineTemplate.schema.json"
37
37
  },
38
- "inactive" : {
39
- "type" : "boolean"
38
+ "inactive": {
39
+ "type": "boolean"
40
40
  },
41
- "interfaceStudioProduct" : {
42
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
41
+ "interfaceStudioProduct": {
42
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
43
43
  },
44
- "key" : {
45
- "type" : "string"
44
+ "key": {
45
+ "type": "string"
46
46
  },
47
- "metaCaseToOtap" : {
48
- "type" : "boolean"
47
+ "metaCaseToOtap": {
48
+ "type": "boolean"
49
49
  },
50
- "ourProductId" : {
51
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
50
+ "ourProductId": {
51
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
52
52
  },
53
- "value" : {
54
- "items" : {
55
- "type" : "string"
53
+ "value": {
54
+ "items": {
55
+ "type": "string"
56
56
  },
57
- "type" : "array"
57
+ "type": "array"
58
58
  }
59
59
  },
60
- "required" : [ "_type", "_uid" ],
61
- "title" : "securityRequirement",
62
- "type" : "object"
63
- }
60
+ "required": [
61
+ "_type",
62
+ "_uid",
63
+ "key"
64
+ ],
65
+ "title": "securityRequirement",
66
+ "type": "object",
67
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/securityRequirement.json."
68
+ }
@@ -230,16 +230,6 @@
230
230
  }
231
231
  }
232
232
  },
233
- {
234
- "properties": {
235
- "parentCondition": false
236
- }
237
- },
238
- {
239
- "properties": {
240
- "parentRule": false
241
- }
242
- },
243
233
  {
244
234
  "properties": {
245
235
  "rightFieldStaticItem": false
@@ -190,6 +190,7 @@
190
190
  "$ref" : "inlineTemplate.schema.json"
191
191
  },
192
192
  "timeUnit" : {
193
+ "enum" : [ "millis", "seconds", "minutes", "hours", "days", "weeks", "months", "years" ],
193
194
  "type" : "string"
194
195
  }
195
196
  }
@@ -150,6 +150,7 @@
150
150
  "$ref" : "inlineTemplate.schema.json"
151
151
  },
152
152
  "tag" : {
153
+ "enum" : [ "button", "div", "span", "a", "input" ],
153
154
  "type" : "string"
154
155
  },
155
156
  "title" : {
@@ -9,6 +9,7 @@
9
9
  "$ref" : "inlineTemplate.schema.json"
10
10
  },
11
11
  "operator" : {
12
+ "enum" : [ "==", "eq", "equals", "==text==", "!==text!==", "!==text==", "!==", "<>", "!=", "neq", "!==", ">=", "gte", ">", "gt", "<=", "lte", "<", "lt", "contains", "notcontains", "!contains", "stringcontains", "notstringcontains", "!stringcontains", "multivaluecontains", "mvcontains", "notmultivaluecontains", "notmvcontains", "!multivaluecontains", "anyin", "notanyin", "!anyin", "allin", "notallin", "!allin", "vectorsearch", "in", "notin", "!in", "innonnull", "notinnonnull", "!innonnull", "like", "notlike", "!like", "beginsWith", "begins", "startswith", "notBeginsWith", "notbegins", "notstartswith", "!beginsWith", "endsWith", "ends", "notEndsWith", "notends", "!endsWith", "equalswildcard", "notequalswildcard", "!equalswildcard", "equalswildcardlhs", "notequalswildcardlhs", "!equalswildcardlhs" ],
12
13
  "type" : "string"
13
14
  },
14
15
  "returnType" : {
@@ -48,6 +48,7 @@
48
48
  "const" : "iterator"
49
49
  },
50
50
  "useCache" : {
51
+ "enum" : [ "auto", "readonly", "readwrite" ],
51
52
  "type" : "string"
52
53
  },
53
54
  "value" : {
@@ -187,6 +187,7 @@
187
187
  "$ref" : "inlineTemplate.schema.json"
188
188
  },
189
189
  "sortDirectionFixed" : {
190
+ "enum" : [ "asc", "ascending", "desc", "descending", "dynamic" ],
190
191
  "type" : "string"
191
192
  }
192
193
  }
@@ -3,6 +3,7 @@
3
3
  "$schema" : "https://json-schema.org/draft/2020-12/schema",
4
4
  "properties" : {
5
5
  "notFoundBehaviour" : {
6
+ "enum" : [ "noLabelText", "rawValue", "parseAlways", "empty" ],
6
7
  "type" : "string"
7
8
  },
8
9
  "param" : {
@@ -67,6 +67,7 @@
67
67
  "then" : {
68
68
  "properties" : {
69
69
  "charset" : {
70
+ "enum" : [ "UTF-8", "UTF-16", "ISO-8859-1", "US-ASCII", "base64" ],
70
71
  "type" : "string"
71
72
  },
72
73
  "param" : {
@@ -155,12 +156,15 @@
155
156
  "then" : {
156
157
  "properties" : {
157
158
  "algorithm" : {
159
+ "enum" : [ "SHA-256", "SHA-512", "HMAC-SHA-512", "HMAC-SHA-256", "hmac-sha-1", "sha-1", "md5", "java" ],
158
160
  "type" : "string"
159
161
  },
160
162
  "outputEncoding" : {
163
+ "enum" : [ "hex", "base64" ],
161
164
  "type" : "string"
162
165
  },
163
166
  "pepper" : {
167
+ "enum" : [ "none", "atalanta" ],
164
168
  "type" : "string"
165
169
  },
166
170
  "salt" : {
@@ -66,8 +66,7 @@
66
66
  "required": [
67
67
  "_type",
68
68
  "_uid",
69
- "name",
70
- "type"
69
+ "name"
71
70
  ],
72
71
  "title": "template",
73
72
  "type": "object",
@@ -121,34 +121,15 @@
121
121
  "title": "trigger",
122
122
  "type": "object",
123
123
  "allOf": [
124
- {
125
- "properties": {
126
- "parentRule": false
127
- }
128
- },
129
124
  {
130
125
  "if": {
131
- "anyOf": [
132
- {
133
- "properties": {
134
- "showProgress": {
135
- "const": "true"
136
- }
137
- },
138
- "required": [
139
- "showProgress"
140
- ]
141
- },
142
- {
143
- "properties": {
144
- "showProgress": {
145
- "const": "true"
146
- }
147
- },
148
- "required": [
149
- "showProgress"
150
- ]
126
+ "properties": {
127
+ "showProgress": {
128
+ "const": "true"
151
129
  }
130
+ },
131
+ "required": [
132
+ "showProgress"
152
133
  ]
153
134
  },
154
135
  "then": {},
@@ -160,27 +141,13 @@
160
141
  },
161
142
  {
162
143
  "if": {
163
- "anyOf": [
164
- {
165
- "properties": {
166
- "showProgress": {
167
- "const": "true"
168
- }
169
- },
170
- "required": [
171
- "showProgress"
172
- ]
173
- },
174
- {
175
- "properties": {
176
- "showProgress": {
177
- "const": "true"
178
- }
179
- },
180
- "required": [
181
- "showProgress"
182
- ]
144
+ "properties": {
145
+ "showProgress": {
146
+ "const": "true"
183
147
  }
148
+ },
149
+ "required": [
150
+ "showProgress"
184
151
  ]
185
152
  },
186
153
  "then": {},
@@ -322,7 +289,7 @@
322
289
  "if": {
323
290
  "properties": {
324
291
  "toTriggerType": {
325
- "const": "attributeValue"
292
+ "const": "currentCase"
326
293
  }
327
294
  },
328
295
  "required": [
@@ -330,10 +297,17 @@
330
297
  ]
331
298
  },
332
299
  "then": {
333
- "required": [
334
- "activityTo",
335
- "activityTag",
336
- "caseTo"
300
+ "anyOf": [
301
+ {
302
+ "required": [
303
+ "activityTo"
304
+ ]
305
+ },
306
+ {
307
+ "required": [
308
+ "activityTag"
309
+ ]
310
+ }
337
311
  ]
338
312
  }
339
313
  },
@@ -349,10 +323,17 @@
349
323
  ]
350
324
  },
351
325
  "then": {
352
- "required": [
353
- "activityTo",
354
- "activityTag",
355
- "datasetTo"
326
+ "anyOf": [
327
+ {
328
+ "required": [
329
+ "activityTo"
330
+ ]
331
+ },
332
+ {
333
+ "required": [
334
+ "activityTag"
335
+ ]
336
+ }
356
337
  ]
357
338
  }
358
339
  },
@@ -360,7 +341,7 @@
360
341
  "if": {
361
342
  "properties": {
362
343
  "toTriggerType": {
363
- "const": "currentCase"
344
+ "const": "attributeValue"
364
345
  }
365
346
  },
366
347
  "required": [
@@ -368,9 +349,43 @@
368
349
  ]
369
350
  },
370
351
  "then": {
352
+ "anyOf": [
353
+ {
354
+ "required": [
355
+ "activityTo"
356
+ ]
357
+ },
358
+ {
359
+ "required": [
360
+ "activityTag"
361
+ ]
362
+ }
363
+ ]
364
+ }
365
+ },
366
+ {
367
+ "if": {
368
+ "properties": {
369
+ "toTriggerType": {
370
+ "const": "parent"
371
+ }
372
+ },
371
373
  "required": [
372
- "activityTo",
373
- "activityTag"
374
+ "toTriggerType"
375
+ ]
376
+ },
377
+ "then": {
378
+ "anyOf": [
379
+ {
380
+ "required": [
381
+ "activityTo"
382
+ ]
383
+ },
384
+ {
385
+ "required": [
386
+ "activityTag"
387
+ ]
388
+ }
374
389
  ]
375
390
  }
376
391
  },
@@ -386,10 +401,43 @@
386
401
  ]
387
402
  },
388
403
  "then": {
404
+ "anyOf": [
405
+ {
406
+ "required": [
407
+ "activityTo"
408
+ ]
409
+ },
410
+ {
411
+ "required": [
412
+ "activityTag"
413
+ ]
414
+ }
415
+ ]
416
+ }
417
+ },
418
+ {
419
+ "if": {
420
+ "properties": {
421
+ "showProgress": {
422
+ "const": "true"
423
+ }
424
+ },
389
425
  "required": [
390
- "activityTo",
391
- "activityTag",
392
- "forEachTo"
426
+ "showProgress"
427
+ ]
428
+ },
429
+ "then": {
430
+ "anyOf": [
431
+ {
432
+ "required": [
433
+ "progressTemplate"
434
+ ]
435
+ },
436
+ {
437
+ "required": [
438
+ "progressTitle"
439
+ ]
440
+ }
393
441
  ]
394
442
  }
395
443
  },
@@ -397,7 +445,7 @@
397
445
  "if": {
398
446
  "properties": {
399
447
  "toTriggerType": {
400
- "const": "parent"
448
+ "const": "attributeValue"
401
449
  }
402
450
  },
403
451
  "required": [
@@ -406,26 +454,41 @@
406
454
  },
407
455
  "then": {
408
456
  "required": [
409
- "activityTo",
410
- "activityTag"
457
+ "caseTo"
411
458
  ]
412
459
  }
413
460
  },
414
461
  {
415
462
  "if": {
416
463
  "properties": {
417
- "showProgress": {
418
- "const": "true"
464
+ "toTriggerType": {
465
+ "const": "casesInDataset"
419
466
  }
420
467
  },
421
468
  "required": [
422
- "showProgress"
469
+ "toTriggerType"
470
+ ]
471
+ },
472
+ "then": {
473
+ "required": [
474
+ "datasetTo"
475
+ ]
476
+ }
477
+ },
478
+ {
479
+ "if": {
480
+ "properties": {
481
+ "toTriggerType": {
482
+ "const": "foreachItem"
483
+ }
484
+ },
485
+ "required": [
486
+ "toTriggerType"
423
487
  ]
424
488
  },
425
489
  "then": {
426
490
  "required": [
427
- "progressTemplate",
428
- "progressTitle"
491
+ "forEachTo"
429
492
  ]
430
493
  }
431
494
  },
@@ -71,8 +71,7 @@
71
71
  },
72
72
  "required": [
73
73
  "_type",
74
- "_uid",
75
- "root"
74
+ "_uid"
76
75
  ],
77
76
  "title": "tryBlock",
78
77
  "type": "object",
@@ -89,9 +88,17 @@
89
88
  ]
90
89
  },
91
90
  "then": {
92
- "required": [
93
- "progressTemplate",
94
- "progressTitle"
91
+ "anyOf": [
92
+ {
93
+ "required": [
94
+ "progressTemplate"
95
+ ]
96
+ },
97
+ {
98
+ "required": [
99
+ "progressTitle"
100
+ ]
101
+ }
95
102
  ]
96
103
  }
97
104
  }
@@ -137,22 +137,5 @@
137
137
  ],
138
138
  "title": "view",
139
139
  "type": "object",
140
- "allOf": [
141
- {
142
- "properties": {
143
- "leftNavigationItems": false
144
- }
145
- },
146
- {
147
- "properties": {
148
- "rightNavigationItems": false
149
- }
150
- },
151
- {
152
- "properties": {
153
- "topNavigationItems": false
154
- }
155
- }
156
- ],
157
140
  "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/view.json."
158
141
  }
@@ -78,27 +78,13 @@
78
78
  "allOf": [
79
79
  {
80
80
  "if": {
81
- "anyOf": [
82
- {
83
- "properties": {
84
- "showProgress": {
85
- "const": "true"
86
- }
87
- },
88
- "required": [
89
- "showProgress"
90
- ]
91
- },
92
- {
93
- "properties": {
94
- "showProgress": {
95
- "const": "true"
96
- }
97
- },
98
- "required": [
99
- "showProgress"
100
- ]
81
+ "properties": {
82
+ "showProgress": {
83
+ "const": "true"
101
84
  }
85
+ },
86
+ "required": [
87
+ "showProgress"
102
88
  ]
103
89
  },
104
90
  "then": {},
@@ -110,27 +96,13 @@
110
96
  },
111
97
  {
112
98
  "if": {
113
- "anyOf": [
114
- {
115
- "properties": {
116
- "showProgress": {
117
- "const": "true"
118
- }
119
- },
120
- "required": [
121
- "showProgress"
122
- ]
123
- },
124
- {
125
- "properties": {
126
- "showProgress": {
127
- "const": "true"
128
- }
129
- },
130
- "required": [
131
- "showProgress"
132
- ]
99
+ "properties": {
100
+ "showProgress": {
101
+ "const": "true"
133
102
  }
103
+ },
104
+ "required": [
105
+ "showProgress"
134
106
  ]
135
107
  },
136
108
  "then": {},
@@ -152,9 +124,17 @@
152
124
  ]
153
125
  },
154
126
  "then": {
155
- "required": [
156
- "progressTemplate",
157
- "progressTitle"
127
+ "anyOf": [
128
+ {
129
+ "required": [
130
+ "progressTemplate"
131
+ ]
132
+ },
133
+ {
134
+ "required": [
135
+ "progressTitle"
136
+ ]
137
+ }
158
138
  ]
159
139
  }
160
140
  }