@grexx/grexxlinter 0.2.0

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 (137) hide show
  1. package/cli.js +14973 -0
  2. package/lsp.js +23977 -0
  3. package/package.json +19 -0
  4. package/schemas/.coverage.json +10987 -0
  5. package/schemas/abstract.schema.json +842 -0
  6. package/schemas/abstractAttribute.schema.json +38 -0
  7. package/schemas/abstractAttributeFormField.schema.json +50 -0
  8. package/schemas/abstractCondition.schema.json +74 -0
  9. package/schemas/abstractRight.schema.json +74 -0
  10. package/schemas/abstractRole.schema.json +50 -0
  11. package/schemas/abstractRule.schema.json +182 -0
  12. package/schemas/activity.schema.json +1328 -0
  13. package/schemas/activityAttribute.schema.json +73 -0
  14. package/schemas/activityRight.schema.json +64 -0
  15. package/schemas/agent.schema.json +179 -0
  16. package/schemas/agentTool.schema.json +118 -0
  17. package/schemas/attribute.schema.json +286 -0
  18. package/schemas/casetype.schema.json +256 -0
  19. package/schemas/catchBlock.schema.json +76 -0
  20. package/schemas/common.schema.json +63 -0
  21. package/schemas/conditionList.schema.json +67 -0
  22. package/schemas/container.schema.json +88 -0
  23. package/schemas/cssVariables.schema.json +90 -0
  24. package/schemas/customThrow.schema.json +73 -0
  25. package/schemas/dataRetentionProfile.schema.json +90 -0
  26. package/schemas/dataset.schema.json +579 -0
  27. package/schemas/datasetColumn.schema.json +423 -0
  28. package/schemas/datasetCondition.schema.json +409 -0
  29. package/schemas/datasetRight.schema.json +86 -0
  30. package/schemas/datasource.schema.json +73 -0
  31. package/schemas/dateProfile.schema.json +87 -0
  32. package/schemas/directRole.schema.json +71 -0
  33. package/schemas/fileUploadProfile.schema.json +75 -0
  34. package/schemas/forEach.schema.json +144 -0
  35. package/schemas/form.schema.json +119 -0
  36. package/schemas/formAction.schema.json +149 -0
  37. package/schemas/formActionAi.schema.json +81 -0
  38. package/schemas/formActionInlineJavascript.schema.json +66 -0
  39. package/schemas/formButton.schema.json +84 -0
  40. package/schemas/formGroup.schema.json +99 -0
  41. package/schemas/formRight.schema.json +86 -0
  42. package/schemas/formfield.schema.json +339 -0
  43. package/schemas/gridActivity.schema.json +80 -0
  44. package/schemas/gridColumn.schema.json +111 -0
  45. package/schemas/hasRoleCondition.schema.json +63 -0
  46. package/schemas/ifthenelse.schema.json +78 -0
  47. package/schemas/indirectRole.schema.json +74 -0
  48. package/schemas/job.schema.json +63 -0
  49. package/schemas/jobStep.schema.json +68 -0
  50. package/schemas/llmModel.schema.json +79 -0
  51. package/schemas/mapping.schema.json +690 -0
  52. package/schemas/menuItem.schema.json +519 -0
  53. package/schemas/menuItemRight.schema.json +64 -0
  54. package/schemas/metadata.schema.json +96 -0
  55. package/schemas/navigation.schema.json +86 -0
  56. package/schemas/notCondition.schema.json +60 -0
  57. package/schemas/parallelBlock.schema.json +75 -0
  58. package/schemas/picklist.schema.json +113 -0
  59. package/schemas/picklistItem.schema.json +71 -0
  60. package/schemas/platformAttribute.schema.json +300 -0
  61. package/schemas/platformRole.schema.json +191 -0
  62. package/schemas/platformconstants.schema.json +94 -0
  63. package/schemas/plugin.schema.json +99 -0
  64. package/schemas/pluginLibrary.schema.json +78 -0
  65. package/schemas/requestContext.schema.json +183 -0
  66. package/schemas/roleName.schema.json +115 -0
  67. package/schemas/ruleList.schema.json +72 -0
  68. package/schemas/securityProfile.schema.json +63 -0
  69. package/schemas/securityRequirement.schema.json +63 -0
  70. package/schemas/simpleCondition.schema.json +466 -0
  71. package/schemas/staticFile.schema.json +63 -0
  72. package/schemas/tag.schema.json +62 -0
  73. package/schemas/taskQueue.schema.json +69 -0
  74. package/schemas/template/activitymeta.schema.json +36 -0
  75. package/schemas/template/attribute.schema.json +31 -0
  76. package/schemas/template/calculate-dataset.schema.json +31 -0
  77. package/schemas/template/casemeta.schema.json +18 -0
  78. package/schemas/template/casetypemeta.schema.json +19 -0
  79. package/schemas/template/comment.schema.json +36 -0
  80. package/schemas/template/datasetColumn.schema.json +31 -0
  81. package/schemas/template/date-function.schema.json +232 -0
  82. package/schemas/template/definitionmeta.schema.json +73 -0
  83. package/schemas/template/file.schema.json +39 -0
  84. package/schemas/template/foreach.schema.json +67 -0
  85. package/schemas/template/formfield.schema.json +21 -0
  86. package/schemas/template/formula.schema.json +18 -0
  87. package/schemas/template/hasRole.schema.json +18 -0
  88. package/schemas/template/historic.schema.json +21 -0
  89. package/schemas/template/html.schema.json +165 -0
  90. package/schemas/template/icon.schema.json +18 -0
  91. package/schemas/template/if.schema.json +30 -0
  92. package/schemas/template/inlineTemplate.schema.json +26 -0
  93. package/schemas/template/isnull.schema.json +21 -0
  94. package/schemas/template/isofcasetype.schema.json +24 -0
  95. package/schemas/template/iterator.schema.json +61 -0
  96. package/schemas/template/json.schema.json +55 -0
  97. package/schemas/template/math.schema.json +210 -0
  98. package/schemas/template/meta.schema.json +164 -0
  99. package/schemas/template/metadefinitionmeta.schema.json +36 -0
  100. package/schemas/template/multivalue.schema.json +210 -0
  101. package/schemas/template/page.schema.json +21 -0
  102. package/schemas/template/parameter.schema.json +24 -0
  103. package/schemas/template/parameterDefinition.schema.json +27 -0
  104. package/schemas/template/parameterIdDefinition.schema.json +28 -0
  105. package/schemas/template/parseError.schema.json +48 -0
  106. package/schemas/template/picklist.schema.json +27 -0
  107. package/schemas/template/pseudoTemplate.schema.json +27 -0
  108. package/schemas/template/requestcontext.schema.json +52 -0
  109. package/schemas/template/returnType.schema.json +26 -0
  110. package/schemas/template/spacialMath.schema.json +77 -0
  111. package/schemas/template/special.schema.json +19 -0
  112. package/schemas/template/staticFile.schema.json +39 -0
  113. package/schemas/template/system.schema.json +22 -0
  114. package/schemas/template/systemconfig.schema.json +21 -0
  115. package/schemas/template/taskattribute.schema.json +21 -0
  116. package/schemas/template/taskdata.schema.json +24 -0
  117. package/schemas/template/taskmeta.schema.json +180 -0
  118. package/schemas/template/taskqueuemeta.schema.json +36 -0
  119. package/schemas/template/template.schema.json +27 -0
  120. package/schemas/template/templatePart.schema.json +638 -0
  121. package/schemas/template/text.schema.json +18 -0
  122. package/schemas/template/url.schema.json +77 -0
  123. package/schemas/template/urlParameter.schema.json +21 -0
  124. package/schemas/template/user.schema.json +36 -0
  125. package/schemas/template/userProperty.schema.json +22 -0
  126. package/schemas/template/usersession.schema.json +18 -0
  127. package/schemas/template/util.schema.json +434 -0
  128. package/schemas/template/xml.schema.json +55 -0
  129. package/schemas/template.schema.json +74 -0
  130. package/schemas/theme.schema.json +63 -0
  131. package/schemas/trigger.schema.json +413 -0
  132. package/schemas/tryBlock.schema.json +99 -0
  133. package/schemas/view.schema.json +159 -0
  134. package/schemas/webhook.schema.json +77 -0
  135. package/schemas/while.schema.json +130 -0
  136. package/schemas/widget.schema.json +1416 -0
  137. package/schemas/widgetRight.schema.json +85 -0
@@ -0,0 +1,38 @@
1
+ {
2
+ "$id" : "https://grexx.net/studio-next/schemas/abstractAttribute.schema.json",
3
+ "$schema" : "https://json-schema.org/draft/2020-12/schema",
4
+ "allOf" : [ {
5
+ "if" : {
6
+ "properties" : {
7
+ "_type" : {
8
+ "const" : "attribute"
9
+ }
10
+ },
11
+ "required" : [ "_type" ]
12
+ },
13
+ "then" : {
14
+ "$ref" : "attribute.schema.json"
15
+ }
16
+ }, {
17
+ "if" : {
18
+ "properties" : {
19
+ "_type" : {
20
+ "const" : "platformAttribute"
21
+ }
22
+ },
23
+ "required" : [ "_type" ]
24
+ },
25
+ "then" : {
26
+ "$ref" : "platformAttribute.schema.json"
27
+ }
28
+ } ],
29
+ "properties" : {
30
+ "_type" : {
31
+ "enum" : [ "attribute", "platformAttribute" ],
32
+ "type" : "string"
33
+ }
34
+ },
35
+ "required" : [ "_type" ],
36
+ "title" : "abstractAttribute",
37
+ "type" : "object"
38
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "$id" : "https://grexx.net/studio-next/schemas/abstractAttributeFormField.schema.json",
3
+ "$schema" : "https://json-schema.org/draft/2020-12/schema",
4
+ "allOf" : [ {
5
+ "if" : {
6
+ "properties" : {
7
+ "_type" : {
8
+ "const" : "attribute"
9
+ }
10
+ },
11
+ "required" : [ "_type" ]
12
+ },
13
+ "then" : {
14
+ "$ref" : "attribute.schema.json"
15
+ }
16
+ }, {
17
+ "if" : {
18
+ "properties" : {
19
+ "_type" : {
20
+ "const" : "formfield"
21
+ }
22
+ },
23
+ "required" : [ "_type" ]
24
+ },
25
+ "then" : {
26
+ "$ref" : "formfield.schema.json"
27
+ }
28
+ }, {
29
+ "if" : {
30
+ "properties" : {
31
+ "_type" : {
32
+ "const" : "platformAttribute"
33
+ }
34
+ },
35
+ "required" : [ "_type" ]
36
+ },
37
+ "then" : {
38
+ "$ref" : "platformAttribute.schema.json"
39
+ }
40
+ } ],
41
+ "properties" : {
42
+ "_type" : {
43
+ "enum" : [ "attribute", "formfield", "platformAttribute" ],
44
+ "type" : "string"
45
+ }
46
+ },
47
+ "required" : [ "_type" ],
48
+ "title" : "abstractAttributeFormField",
49
+ "type" : "object"
50
+ }
@@ -0,0 +1,74 @@
1
+ {
2
+ "$id" : "https://grexx.net/studio-next/schemas/abstractCondition.schema.json",
3
+ "$schema" : "https://json-schema.org/draft/2020-12/schema",
4
+ "allOf" : [ {
5
+ "if" : {
6
+ "properties" : {
7
+ "_type" : {
8
+ "const" : "conditionList"
9
+ }
10
+ },
11
+ "required" : [ "_type" ]
12
+ },
13
+ "then" : {
14
+ "$ref" : "conditionList.schema.json"
15
+ }
16
+ }, {
17
+ "if" : {
18
+ "properties" : {
19
+ "_type" : {
20
+ "const" : "datasetCondition"
21
+ }
22
+ },
23
+ "required" : [ "_type" ]
24
+ },
25
+ "then" : {
26
+ "$ref" : "datasetCondition.schema.json"
27
+ }
28
+ }, {
29
+ "if" : {
30
+ "properties" : {
31
+ "_type" : {
32
+ "const" : "hasRoleCondition"
33
+ }
34
+ },
35
+ "required" : [ "_type" ]
36
+ },
37
+ "then" : {
38
+ "$ref" : "hasRoleCondition.schema.json"
39
+ }
40
+ }, {
41
+ "if" : {
42
+ "properties" : {
43
+ "_type" : {
44
+ "const" : "notCondition"
45
+ }
46
+ },
47
+ "required" : [ "_type" ]
48
+ },
49
+ "then" : {
50
+ "$ref" : "notCondition.schema.json"
51
+ }
52
+ }, {
53
+ "if" : {
54
+ "properties" : {
55
+ "_type" : {
56
+ "const" : "simpleCondition"
57
+ }
58
+ },
59
+ "required" : [ "_type" ]
60
+ },
61
+ "then" : {
62
+ "$ref" : "simpleCondition.schema.json"
63
+ }
64
+ } ],
65
+ "properties" : {
66
+ "_type" : {
67
+ "enum" : [ "conditionList", "datasetCondition", "hasRoleCondition", "notCondition", "simpleCondition" ],
68
+ "type" : "string"
69
+ }
70
+ },
71
+ "required" : [ "_type" ],
72
+ "title" : "abstractCondition",
73
+ "type" : "object"
74
+ }
@@ -0,0 +1,74 @@
1
+ {
2
+ "$id" : "https://grexx.net/studio-next/schemas/abstractRight.schema.json",
3
+ "$schema" : "https://json-schema.org/draft/2020-12/schema",
4
+ "allOf" : [ {
5
+ "if" : {
6
+ "properties" : {
7
+ "_type" : {
8
+ "const" : "activityRight"
9
+ }
10
+ },
11
+ "required" : [ "_type" ]
12
+ },
13
+ "then" : {
14
+ "$ref" : "activityRight.schema.json"
15
+ }
16
+ }, {
17
+ "if" : {
18
+ "properties" : {
19
+ "_type" : {
20
+ "const" : "datasetRight"
21
+ }
22
+ },
23
+ "required" : [ "_type" ]
24
+ },
25
+ "then" : {
26
+ "$ref" : "datasetRight.schema.json"
27
+ }
28
+ }, {
29
+ "if" : {
30
+ "properties" : {
31
+ "_type" : {
32
+ "const" : "formRight"
33
+ }
34
+ },
35
+ "required" : [ "_type" ]
36
+ },
37
+ "then" : {
38
+ "$ref" : "formRight.schema.json"
39
+ }
40
+ }, {
41
+ "if" : {
42
+ "properties" : {
43
+ "_type" : {
44
+ "const" : "menuItemRight"
45
+ }
46
+ },
47
+ "required" : [ "_type" ]
48
+ },
49
+ "then" : {
50
+ "$ref" : "menuItemRight.schema.json"
51
+ }
52
+ }, {
53
+ "if" : {
54
+ "properties" : {
55
+ "_type" : {
56
+ "const" : "widgetRight"
57
+ }
58
+ },
59
+ "required" : [ "_type" ]
60
+ },
61
+ "then" : {
62
+ "$ref" : "widgetRight.schema.json"
63
+ }
64
+ } ],
65
+ "properties" : {
66
+ "_type" : {
67
+ "enum" : [ "activityRight", "datasetRight", "formRight", "menuItemRight", "widgetRight" ],
68
+ "type" : "string"
69
+ }
70
+ },
71
+ "required" : [ "_type" ],
72
+ "title" : "abstractRight",
73
+ "type" : "object"
74
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "$id" : "https://grexx.net/studio-next/schemas/abstractRole.schema.json",
3
+ "$schema" : "https://json-schema.org/draft/2020-12/schema",
4
+ "allOf" : [ {
5
+ "if" : {
6
+ "properties" : {
7
+ "_type" : {
8
+ "const" : "directRole"
9
+ }
10
+ },
11
+ "required" : [ "_type" ]
12
+ },
13
+ "then" : {
14
+ "$ref" : "directRole.schema.json"
15
+ }
16
+ }, {
17
+ "if" : {
18
+ "properties" : {
19
+ "_type" : {
20
+ "const" : "indirectRole"
21
+ }
22
+ },
23
+ "required" : [ "_type" ]
24
+ },
25
+ "then" : {
26
+ "$ref" : "indirectRole.schema.json"
27
+ }
28
+ }, {
29
+ "if" : {
30
+ "properties" : {
31
+ "_type" : {
32
+ "const" : "platformRole"
33
+ }
34
+ },
35
+ "required" : [ "_type" ]
36
+ },
37
+ "then" : {
38
+ "$ref" : "platformRole.schema.json"
39
+ }
40
+ } ],
41
+ "properties" : {
42
+ "_type" : {
43
+ "enum" : [ "directRole", "indirectRole", "platformRole" ],
44
+ "type" : "string"
45
+ }
46
+ },
47
+ "required" : [ "_type" ],
48
+ "title" : "abstractRole",
49
+ "type" : "object"
50
+ }
@@ -0,0 +1,182 @@
1
+ {
2
+ "$id" : "https://grexx.net/studio-next/schemas/abstractRule.schema.json",
3
+ "$schema" : "https://json-schema.org/draft/2020-12/schema",
4
+ "allOf" : [ {
5
+ "if" : {
6
+ "properties" : {
7
+ "_type" : {
8
+ "const" : "catchBlock"
9
+ }
10
+ },
11
+ "required" : [ "_type" ]
12
+ },
13
+ "then" : {
14
+ "$ref" : "catchBlock.schema.json"
15
+ }
16
+ }, {
17
+ "if" : {
18
+ "properties" : {
19
+ "_type" : {
20
+ "const" : "customThrow"
21
+ }
22
+ },
23
+ "required" : [ "_type" ]
24
+ },
25
+ "then" : {
26
+ "$ref" : "customThrow.schema.json"
27
+ }
28
+ }, {
29
+ "if" : {
30
+ "properties" : {
31
+ "_type" : {
32
+ "const" : "forEach"
33
+ }
34
+ },
35
+ "required" : [ "_type" ]
36
+ },
37
+ "then" : {
38
+ "$ref" : "forEach.schema.json"
39
+ }
40
+ }, {
41
+ "if" : {
42
+ "properties" : {
43
+ "_type" : {
44
+ "const" : "formActionAi"
45
+ }
46
+ },
47
+ "required" : [ "_type" ]
48
+ },
49
+ "then" : {
50
+ "$ref" : "formActionAi.schema.json"
51
+ }
52
+ }, {
53
+ "if" : {
54
+ "properties" : {
55
+ "_type" : {
56
+ "const" : "formActionInlineJavascript"
57
+ }
58
+ },
59
+ "required" : [ "_type" ]
60
+ },
61
+ "then" : {
62
+ "$ref" : "formActionInlineJavascript.schema.json"
63
+ }
64
+ }, {
65
+ "if" : {
66
+ "properties" : {
67
+ "_type" : {
68
+ "const" : "formAction"
69
+ }
70
+ },
71
+ "required" : [ "_type" ]
72
+ },
73
+ "then" : {
74
+ "$ref" : "formAction.schema.json"
75
+ }
76
+ }, {
77
+ "if" : {
78
+ "properties" : {
79
+ "_type" : {
80
+ "const" : "ifthenelse"
81
+ }
82
+ },
83
+ "required" : [ "_type" ]
84
+ },
85
+ "then" : {
86
+ "$ref" : "ifthenelse.schema.json"
87
+ }
88
+ }, {
89
+ "if" : {
90
+ "properties" : {
91
+ "_type" : {
92
+ "const" : "mapping"
93
+ }
94
+ },
95
+ "required" : [ "_type" ]
96
+ },
97
+ "then" : {
98
+ "$ref" : "mapping.schema.json"
99
+ }
100
+ }, {
101
+ "if" : {
102
+ "properties" : {
103
+ "_type" : {
104
+ "const" : "parallelBlock"
105
+ }
106
+ },
107
+ "required" : [ "_type" ]
108
+ },
109
+ "then" : {
110
+ "$ref" : "parallelBlock.schema.json"
111
+ }
112
+ }, {
113
+ "if" : {
114
+ "properties" : {
115
+ "_type" : {
116
+ "const" : "requestContext"
117
+ }
118
+ },
119
+ "required" : [ "_type" ]
120
+ },
121
+ "then" : {
122
+ "$ref" : "requestContext.schema.json"
123
+ }
124
+ }, {
125
+ "if" : {
126
+ "properties" : {
127
+ "_type" : {
128
+ "const" : "ruleList"
129
+ }
130
+ },
131
+ "required" : [ "_type" ]
132
+ },
133
+ "then" : {
134
+ "$ref" : "ruleList.schema.json"
135
+ }
136
+ }, {
137
+ "if" : {
138
+ "properties" : {
139
+ "_type" : {
140
+ "const" : "trigger"
141
+ }
142
+ },
143
+ "required" : [ "_type" ]
144
+ },
145
+ "then" : {
146
+ "$ref" : "trigger.schema.json"
147
+ }
148
+ }, {
149
+ "if" : {
150
+ "properties" : {
151
+ "_type" : {
152
+ "const" : "tryBlock"
153
+ }
154
+ },
155
+ "required" : [ "_type" ]
156
+ },
157
+ "then" : {
158
+ "$ref" : "tryBlock.schema.json"
159
+ }
160
+ }, {
161
+ "if" : {
162
+ "properties" : {
163
+ "_type" : {
164
+ "const" : "while"
165
+ }
166
+ },
167
+ "required" : [ "_type" ]
168
+ },
169
+ "then" : {
170
+ "$ref" : "while.schema.json"
171
+ }
172
+ } ],
173
+ "properties" : {
174
+ "_type" : {
175
+ "enum" : [ "catchBlock", "customThrow", "forEach", "formActionAi", "formActionInlineJavascript", "formAction", "ifthenelse", "mapping", "parallelBlock", "requestContext", "ruleList", "trigger", "tryBlock", "while" ],
176
+ "type" : "string"
177
+ }
178
+ },
179
+ "required" : [ "_type" ],
180
+ "title" : "abstractRule",
181
+ "type" : "object"
182
+ }