@camunda/linting 3.23.0 → 3.25.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.
- package/lib/compiled-config.js +57 -42
- package/lib/utils/error-messages.js +16 -0
- package/lib/utils/properties-panel.js +24 -0
- package/package.json +4 -4
package/lib/compiled-config.js
CHANGED
|
@@ -48,17 +48,20 @@ const rules = {
|
|
|
48
48
|
"camunda-compat/link-event": "error",
|
|
49
49
|
"camunda-compat/loop-characteristics": "error",
|
|
50
50
|
"camunda-compat/message-reference": "error",
|
|
51
|
+
"camunda-compat/no-binding-type": "error",
|
|
51
52
|
"camunda-compat/no-candidate-users": "error",
|
|
52
53
|
"camunda-compat/no-execution-listeners": "error",
|
|
53
54
|
"camunda-compat/no-expression": "error",
|
|
54
55
|
"camunda-compat/no-loop": "error",
|
|
55
56
|
"camunda-compat/no-multiple-none-start-events": "error",
|
|
57
|
+
"camunda-compat/no-priority-definition": "error",
|
|
56
58
|
"camunda-compat/no-propagate-all-parent-variables": "error",
|
|
57
59
|
"camunda-compat/no-signal-event-sub-process": "error",
|
|
58
60
|
"camunda-compat/no-task-schedule": "error",
|
|
59
61
|
"camunda-compat/no-template": "error",
|
|
60
62
|
"camunda-compat/no-zeebe-properties": "error",
|
|
61
63
|
"camunda-compat/no-zeebe-user-task": "error",
|
|
64
|
+
"camunda-compat/priority-definition": "error",
|
|
62
65
|
"camunda-compat/secrets": "warn",
|
|
63
66
|
"camunda-compat/sequence-flow-condition": "error",
|
|
64
67
|
"camunda-compat/signal-reference": "error",
|
|
@@ -160,86 +163,98 @@ import rule_18 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/message-
|
|
|
160
163
|
|
|
161
164
|
cache['bpmnlint-plugin-camunda-compat/message-reference'] = rule_18;
|
|
162
165
|
|
|
163
|
-
import rule_19 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-
|
|
166
|
+
import rule_19 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-binding-type';
|
|
164
167
|
|
|
165
|
-
cache['bpmnlint-plugin-camunda-compat/no-
|
|
168
|
+
cache['bpmnlint-plugin-camunda-compat/no-binding-type'] = rule_19;
|
|
166
169
|
|
|
167
|
-
import rule_20 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-
|
|
170
|
+
import rule_20 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-candidate-users';
|
|
168
171
|
|
|
169
|
-
cache['bpmnlint-plugin-camunda-compat/no-
|
|
172
|
+
cache['bpmnlint-plugin-camunda-compat/no-candidate-users'] = rule_20;
|
|
170
173
|
|
|
171
|
-
import rule_21 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-
|
|
174
|
+
import rule_21 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-execution-listeners';
|
|
172
175
|
|
|
173
|
-
cache['bpmnlint-plugin-camunda-compat/no-
|
|
176
|
+
cache['bpmnlint-plugin-camunda-compat/no-execution-listeners'] = rule_21;
|
|
174
177
|
|
|
175
|
-
import rule_22 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-
|
|
178
|
+
import rule_22 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-expression';
|
|
176
179
|
|
|
177
|
-
cache['bpmnlint-plugin-camunda-compat/no-
|
|
180
|
+
cache['bpmnlint-plugin-camunda-compat/no-expression'] = rule_22;
|
|
178
181
|
|
|
179
|
-
import rule_23 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-
|
|
182
|
+
import rule_23 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-loop';
|
|
180
183
|
|
|
181
|
-
cache['bpmnlint-plugin-camunda-compat/no-
|
|
184
|
+
cache['bpmnlint-plugin-camunda-compat/no-loop'] = rule_23;
|
|
182
185
|
|
|
183
|
-
import rule_24 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-
|
|
186
|
+
import rule_24 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-multiple-none-start-events';
|
|
184
187
|
|
|
185
|
-
cache['bpmnlint-plugin-camunda-compat/no-
|
|
188
|
+
cache['bpmnlint-plugin-camunda-compat/no-multiple-none-start-events'] = rule_24;
|
|
186
189
|
|
|
187
|
-
import rule_25 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-
|
|
190
|
+
import rule_25 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-priority-definition';
|
|
188
191
|
|
|
189
|
-
cache['bpmnlint-plugin-camunda-compat/no-
|
|
192
|
+
cache['bpmnlint-plugin-camunda-compat/no-priority-definition'] = rule_25;
|
|
190
193
|
|
|
191
|
-
import rule_26 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-
|
|
194
|
+
import rule_26 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-propagate-all-parent-variables';
|
|
192
195
|
|
|
193
|
-
cache['bpmnlint-plugin-camunda-compat/no-
|
|
196
|
+
cache['bpmnlint-plugin-camunda-compat/no-propagate-all-parent-variables'] = rule_26;
|
|
194
197
|
|
|
195
|
-
import rule_27 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-
|
|
198
|
+
import rule_27 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-signal-event-sub-process';
|
|
196
199
|
|
|
197
|
-
cache['bpmnlint-plugin-camunda-compat/no-
|
|
200
|
+
cache['bpmnlint-plugin-camunda-compat/no-signal-event-sub-process'] = rule_27;
|
|
198
201
|
|
|
199
|
-
import rule_28 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-
|
|
202
|
+
import rule_28 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-task-schedule';
|
|
200
203
|
|
|
201
|
-
cache['bpmnlint-plugin-camunda-compat/no-
|
|
204
|
+
cache['bpmnlint-plugin-camunda-compat/no-task-schedule'] = rule_28;
|
|
202
205
|
|
|
203
|
-
import rule_29 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-
|
|
206
|
+
import rule_29 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-template';
|
|
204
207
|
|
|
205
|
-
cache['bpmnlint-plugin-camunda-compat/no-
|
|
208
|
+
cache['bpmnlint-plugin-camunda-compat/no-template'] = rule_29;
|
|
206
209
|
|
|
207
|
-
import rule_30 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
210
|
+
import rule_30 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-zeebe-properties';
|
|
208
211
|
|
|
209
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
212
|
+
cache['bpmnlint-plugin-camunda-compat/no-zeebe-properties'] = rule_30;
|
|
210
213
|
|
|
211
|
-
import rule_31 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
214
|
+
import rule_31 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-zeebe-user-task';
|
|
212
215
|
|
|
213
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
216
|
+
cache['bpmnlint-plugin-camunda-compat/no-zeebe-user-task'] = rule_31;
|
|
214
217
|
|
|
215
|
-
import rule_32 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
218
|
+
import rule_32 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/priority-definition';
|
|
216
219
|
|
|
217
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
220
|
+
cache['bpmnlint-plugin-camunda-compat/priority-definition'] = rule_32;
|
|
218
221
|
|
|
219
|
-
import rule_33 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
222
|
+
import rule_33 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/secrets';
|
|
220
223
|
|
|
221
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
224
|
+
cache['bpmnlint-plugin-camunda-compat/secrets'] = rule_33;
|
|
222
225
|
|
|
223
|
-
import rule_34 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
226
|
+
import rule_34 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/sequence-flow-condition';
|
|
224
227
|
|
|
225
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
228
|
+
cache['bpmnlint-plugin-camunda-compat/sequence-flow-condition'] = rule_34;
|
|
226
229
|
|
|
227
|
-
import rule_35 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
230
|
+
import rule_35 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/signal-reference';
|
|
228
231
|
|
|
229
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
232
|
+
cache['bpmnlint-plugin-camunda-compat/signal-reference'] = rule_35;
|
|
230
233
|
|
|
231
|
-
import rule_36 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
234
|
+
import rule_36 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/start-event-form';
|
|
232
235
|
|
|
233
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
236
|
+
cache['bpmnlint-plugin-camunda-compat/start-event-form'] = rule_36;
|
|
234
237
|
|
|
235
|
-
import rule_37 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
238
|
+
import rule_37 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/subscription';
|
|
236
239
|
|
|
237
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
240
|
+
cache['bpmnlint-plugin-camunda-compat/subscription'] = rule_37;
|
|
238
241
|
|
|
239
|
-
import rule_38 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
242
|
+
import rule_38 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/task-schedule';
|
|
240
243
|
|
|
241
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
244
|
+
cache['bpmnlint-plugin-camunda-compat/task-schedule'] = rule_38;
|
|
242
245
|
|
|
243
|
-
import rule_39 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
246
|
+
import rule_39 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/timer';
|
|
244
247
|
|
|
245
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
248
|
+
cache['bpmnlint-plugin-camunda-compat/timer'] = rule_39;
|
|
249
|
+
|
|
250
|
+
import rule_40 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/user-task-definition';
|
|
251
|
+
|
|
252
|
+
cache['bpmnlint-plugin-camunda-compat/user-task-definition'] = rule_40;
|
|
253
|
+
|
|
254
|
+
import rule_41 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/user-task-form';
|
|
255
|
+
|
|
256
|
+
cache['bpmnlint-plugin-camunda-compat/user-task-form'] = rule_41;
|
|
257
|
+
|
|
258
|
+
import rule_42 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/wait-for-completion';
|
|
259
|
+
|
|
260
|
+
cache['bpmnlint-plugin-camunda-compat/wait-for-completion'] = rule_42;
|
|
@@ -324,6 +324,10 @@ function getExtensionElementNotAllowedErrorMessage(report, executionPlatform, ex
|
|
|
324
324
|
return getSupportedMessage('A <User Task> with <Due date> or <Follow up date>', executionPlatform, executionPlatformVersion, allowedVersion);
|
|
325
325
|
}
|
|
326
326
|
|
|
327
|
+
if (is(node, 'bpmn:UserTask') && is(extensionElement, 'zeebe:PriorityDefinition')) {
|
|
328
|
+
return getSupportedMessage('A <User Task> with <Priority>', executionPlatform, executionPlatformVersion, allowedVersion);
|
|
329
|
+
}
|
|
330
|
+
|
|
327
331
|
if (is(node, 'bpmn:StartEvent') && is(extensionElement, 'zeebe:FormDefinition')) {
|
|
328
332
|
return getSupportedMessage('A <Start Event> with <User Task Form>', executionPlatform, executionPlatformVersion, allowedVersion);
|
|
329
333
|
}
|
|
@@ -648,6 +652,10 @@ function getExpressionValueNotAllowedErrorMessage(report, executionPlatform, exe
|
|
|
648
652
|
return `${ getIndefiniteArticle(typeString) } <${ typeString }> <Follow up date> must be an ISO 8601 date`;
|
|
649
653
|
}
|
|
650
654
|
|
|
655
|
+
if (is(node, 'zeebe:PriorityDefinition') && property === 'priority') {
|
|
656
|
+
return `${ getIndefiniteArticle(typeString) } <${ typeString }> <Priority> must be an expression, or an integer between 0 and 100`;
|
|
657
|
+
}
|
|
658
|
+
|
|
651
659
|
return message;
|
|
652
660
|
}
|
|
653
661
|
|
|
@@ -710,6 +718,14 @@ function getPropertyValueNotAllowedErrorMessage(report, executionPlatform, execu
|
|
|
710
718
|
return getSupportedMessage(`${ getIndefiniteArticle(typeString) } <${ typeString }> with <Propagate all variables> disabled`, executionPlatform, executionPlatformVersion, allowedVersion);
|
|
711
719
|
}
|
|
712
720
|
|
|
721
|
+
if (isAny(node, [
|
|
722
|
+
'zeebe:CalledDecision',
|
|
723
|
+
'zeebe:CalledElement',
|
|
724
|
+
'zeebe:FormDefinition'
|
|
725
|
+
]) && property === 'bindingType') {
|
|
726
|
+
return getSupportedMessage(`${ getIndefiniteArticle(typeString) } <${ typeString }> with <Binding: deployment>`, executionPlatform, executionPlatformVersion, allowedVersion);
|
|
727
|
+
}
|
|
728
|
+
|
|
713
729
|
return message;
|
|
714
730
|
}
|
|
715
731
|
|
|
@@ -303,6 +303,14 @@ export function getEntryIds(report) {
|
|
|
303
303
|
return ids;
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
+
if (isExpressionValueNotAllowedError(data, 'priority', 'zeebe:PriorityDefinition')) {
|
|
307
|
+
return [ 'priorityDefinitionPriority' ];
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
if (isExtensionElementNotAllowedError(data, 'zeebe:PriorityDefinition', 'bpmn:UserTask')) {
|
|
311
|
+
return [ 'priorityDefinition' ];
|
|
312
|
+
}
|
|
313
|
+
|
|
306
314
|
if (isPropertyError(data, 'propagateAllParentVariables', 'zeebe:CalledElement')) {
|
|
307
315
|
return [ 'propagateAllParentVariables' ];
|
|
308
316
|
}
|
|
@@ -332,6 +340,10 @@ export function getEntryIds(report) {
|
|
|
332
340
|
});
|
|
333
341
|
}
|
|
334
342
|
|
|
343
|
+
if (isPropertyError(data, 'bindingType')) {
|
|
344
|
+
return [ 'bindingType' ];
|
|
345
|
+
}
|
|
346
|
+
|
|
335
347
|
return [];
|
|
336
348
|
}
|
|
337
349
|
|
|
@@ -529,6 +541,14 @@ export function getErrorMessage(id, report) {
|
|
|
529
541
|
}
|
|
530
542
|
}
|
|
531
543
|
|
|
544
|
+
if (id === 'priorityDefinitionPriority') {
|
|
545
|
+
if (type === ERROR_TYPES.EXTENSION_ELEMENT_NOT_ALLOWED) {
|
|
546
|
+
return getNotSupportedMessage('', allowedVersion);
|
|
547
|
+
} else {
|
|
548
|
+
return 'Must be an expression, or an integer between 0 and 100.';
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
|
|
532
552
|
if (id === 'propagateAllParentVariables') {
|
|
533
553
|
return getNotSupportedMessage('', allowedVersion);
|
|
534
554
|
}
|
|
@@ -552,6 +572,10 @@ export function getErrorMessage(id, report) {
|
|
|
552
572
|
return 'Must be defined.';
|
|
553
573
|
}
|
|
554
574
|
}
|
|
575
|
+
|
|
576
|
+
if (id === 'bindingType') {
|
|
577
|
+
return getNotSupportedMessage('', allowedVersion);
|
|
578
|
+
}
|
|
555
579
|
}
|
|
556
580
|
|
|
557
581
|
function isExtensionElementNotAllowedError(data, extensionElement, type) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/linting",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.25.0",
|
|
4
4
|
"description": "Linting for Camunda",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@bpmn-io/diagram-js-ui": "^0.2.3",
|
|
33
33
|
"bpmn-moddle": "^9.0.1",
|
|
34
34
|
"bpmnlint": "^10.3.0",
|
|
35
|
-
"bpmnlint-plugin-camunda-compat": "^2.
|
|
35
|
+
"bpmnlint-plugin-camunda-compat": "^2.24.0",
|
|
36
36
|
"bpmnlint-utils": "^1.0.2",
|
|
37
37
|
"camunda-bpmn-moddle": "^7.0.1",
|
|
38
38
|
"clsx": "^2.0.0",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"min-dom": "^5.1.1",
|
|
41
41
|
"modeler-moddle": "^0.2.0",
|
|
42
42
|
"semver-compare": "^1.0.0",
|
|
43
|
-
"zeebe-bpmn-moddle": "^1.
|
|
43
|
+
"zeebe-bpmn-moddle": "^1.5.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"bpmn-js": "^17.9.0",
|
|
47
47
|
"bpmn-js-element-templates": "^1.16.0",
|
|
48
|
-
"bpmn-js-properties-panel": "^5.
|
|
48
|
+
"bpmn-js-properties-panel": "^5.22.0",
|
|
49
49
|
"camunda-bpmn-js-behaviors": "^1.5.0",
|
|
50
50
|
"chai": "^4.4.1",
|
|
51
51
|
"cross-env": "^7.0.3",
|