@camunda/linting 3.20.0 → 3.21.1
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 +71 -66
- package/lib/utils/properties-panel.js +36 -20
- package/package.json +9 -9
package/lib/compiled-config.js
CHANGED
|
@@ -32,6 +32,7 @@ const rules = {
|
|
|
32
32
|
"camunda-compat/element-type": "error",
|
|
33
33
|
"camunda-compat/called-element": "error",
|
|
34
34
|
"camunda-compat/collapsed-subprocess": "error",
|
|
35
|
+
"camunda-compat/connector-properties": "warn",
|
|
35
36
|
"camunda-compat/duplicate-task-headers": "error",
|
|
36
37
|
"camunda-compat/error-reference": "error",
|
|
37
38
|
"camunda-compat/escalation-boundary-event-attached-to-ref": "error",
|
|
@@ -92,134 +93,138 @@ import rule_2 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/collapsed
|
|
|
92
93
|
|
|
93
94
|
cache['bpmnlint-plugin-camunda-compat/collapsed-subprocess'] = rule_2;
|
|
94
95
|
|
|
95
|
-
import rule_3 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
96
|
+
import rule_3 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/connector-properties';
|
|
96
97
|
|
|
97
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
98
|
+
cache['bpmnlint-plugin-camunda-compat/connector-properties'] = rule_3;
|
|
98
99
|
|
|
99
|
-
import rule_4 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
100
|
+
import rule_4 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/duplicate-task-headers';
|
|
100
101
|
|
|
101
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
102
|
+
cache['bpmnlint-plugin-camunda-compat/duplicate-task-headers'] = rule_4;
|
|
102
103
|
|
|
103
|
-
import rule_5 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
104
|
+
import rule_5 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/error-reference';
|
|
104
105
|
|
|
105
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
106
|
+
cache['bpmnlint-plugin-camunda-compat/error-reference'] = rule_5;
|
|
106
107
|
|
|
107
|
-
import rule_6 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/escalation-
|
|
108
|
+
import rule_6 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/escalation-boundary-event-attached-to-ref';
|
|
108
109
|
|
|
109
|
-
cache['bpmnlint-plugin-camunda-compat/escalation-
|
|
110
|
+
cache['bpmnlint-plugin-camunda-compat/escalation-boundary-event-attached-to-ref'] = rule_6;
|
|
110
111
|
|
|
111
|
-
import rule_7 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
112
|
+
import rule_7 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/escalation-reference';
|
|
112
113
|
|
|
113
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
114
|
+
cache['bpmnlint-plugin-camunda-compat/escalation-reference'] = rule_7;
|
|
114
115
|
|
|
115
|
-
import rule_8 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
116
|
+
import rule_8 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/event-based-gateway-target';
|
|
116
117
|
|
|
117
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
118
|
+
cache['bpmnlint-plugin-camunda-compat/event-based-gateway-target'] = rule_8;
|
|
118
119
|
|
|
119
|
-
import rule_9 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
120
|
+
import rule_9 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/executable-process';
|
|
120
121
|
|
|
121
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
122
|
+
cache['bpmnlint-plugin-camunda-compat/executable-process'] = rule_9;
|
|
122
123
|
|
|
123
|
-
import rule_10 from 'bpmnlint-plugin-camunda-compat/rules/camunda-
|
|
124
|
+
import rule_10 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/feel';
|
|
124
125
|
|
|
125
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
126
|
+
cache['bpmnlint-plugin-camunda-compat/feel'] = rule_10;
|
|
126
127
|
|
|
127
|
-
import rule_11 from 'bpmnlint-plugin-camunda-compat/rules/camunda-
|
|
128
|
+
import rule_11 from 'bpmnlint-plugin-camunda-compat/rules/camunda-platform/history-time-to-live';
|
|
128
129
|
|
|
129
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
130
|
+
cache['bpmnlint-plugin-camunda-compat/history-time-to-live'] = rule_11;
|
|
130
131
|
|
|
131
|
-
import rule_12 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
132
|
+
import rule_12 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/implementation';
|
|
132
133
|
|
|
133
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
134
|
+
cache['bpmnlint-plugin-camunda-compat/implementation'] = rule_12;
|
|
134
135
|
|
|
135
|
-
import rule_13 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
136
|
+
import rule_13 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/inclusive-gateway';
|
|
136
137
|
|
|
137
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
138
|
+
cache['bpmnlint-plugin-camunda-compat/inclusive-gateway'] = rule_13;
|
|
138
139
|
|
|
139
|
-
import rule_14 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
140
|
+
import rule_14 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/link-event';
|
|
140
141
|
|
|
141
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
142
|
+
cache['bpmnlint-plugin-camunda-compat/link-event'] = rule_14;
|
|
142
143
|
|
|
143
|
-
import rule_15 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
144
|
+
import rule_15 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/loop-characteristics';
|
|
144
145
|
|
|
145
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
146
|
+
cache['bpmnlint-plugin-camunda-compat/loop-characteristics'] = rule_15;
|
|
146
147
|
|
|
147
|
-
import rule_16 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
148
|
+
import rule_16 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/message-reference';
|
|
148
149
|
|
|
149
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
150
|
+
cache['bpmnlint-plugin-camunda-compat/message-reference'] = rule_16;
|
|
150
151
|
|
|
151
|
-
import rule_17 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-
|
|
152
|
+
import rule_17 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-candidate-users';
|
|
152
153
|
|
|
153
|
-
cache['bpmnlint-plugin-camunda-compat/no-
|
|
154
|
+
cache['bpmnlint-plugin-camunda-compat/no-candidate-users'] = rule_17;
|
|
154
155
|
|
|
155
|
-
import rule_18 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-
|
|
156
|
+
import rule_18 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-expression';
|
|
156
157
|
|
|
157
|
-
cache['bpmnlint-plugin-camunda-compat/no-
|
|
158
|
+
cache['bpmnlint-plugin-camunda-compat/no-expression'] = rule_18;
|
|
158
159
|
|
|
159
|
-
import rule_19 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-
|
|
160
|
+
import rule_19 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-loop';
|
|
160
161
|
|
|
161
|
-
cache['bpmnlint-plugin-camunda-compat/no-
|
|
162
|
+
cache['bpmnlint-plugin-camunda-compat/no-loop'] = rule_19;
|
|
162
163
|
|
|
163
|
-
import rule_20 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-
|
|
164
|
+
import rule_20 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-multiple-none-start-events';
|
|
164
165
|
|
|
165
|
-
cache['bpmnlint-plugin-camunda-compat/no-
|
|
166
|
+
cache['bpmnlint-plugin-camunda-compat/no-multiple-none-start-events'] = rule_20;
|
|
166
167
|
|
|
167
|
-
import rule_21 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-
|
|
168
|
+
import rule_21 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-propagate-all-parent-variables';
|
|
168
169
|
|
|
169
|
-
cache['bpmnlint-plugin-camunda-compat/no-
|
|
170
|
+
cache['bpmnlint-plugin-camunda-compat/no-propagate-all-parent-variables'] = rule_21;
|
|
170
171
|
|
|
171
|
-
import rule_22 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-
|
|
172
|
+
import rule_22 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-signal-event-sub-process';
|
|
172
173
|
|
|
173
|
-
cache['bpmnlint-plugin-camunda-compat/no-
|
|
174
|
+
cache['bpmnlint-plugin-camunda-compat/no-signal-event-sub-process'] = rule_22;
|
|
174
175
|
|
|
175
|
-
import rule_23 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-
|
|
176
|
+
import rule_23 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-task-schedule';
|
|
176
177
|
|
|
177
|
-
cache['bpmnlint-plugin-camunda-compat/no-
|
|
178
|
+
cache['bpmnlint-plugin-camunda-compat/no-task-schedule'] = rule_23;
|
|
178
179
|
|
|
179
|
-
import rule_24 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-
|
|
180
|
+
import rule_24 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-template';
|
|
180
181
|
|
|
181
|
-
cache['bpmnlint-plugin-camunda-compat/no-
|
|
182
|
+
cache['bpmnlint-plugin-camunda-compat/no-template'] = rule_24;
|
|
182
183
|
|
|
183
|
-
import rule_25 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-zeebe-
|
|
184
|
+
import rule_25 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-zeebe-properties';
|
|
184
185
|
|
|
185
|
-
cache['bpmnlint-plugin-camunda-compat/no-zeebe-
|
|
186
|
+
cache['bpmnlint-plugin-camunda-compat/no-zeebe-properties'] = rule_25;
|
|
186
187
|
|
|
187
|
-
import rule_26 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
188
|
+
import rule_26 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-zeebe-user-task';
|
|
188
189
|
|
|
189
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
190
|
+
cache['bpmnlint-plugin-camunda-compat/no-zeebe-user-task'] = rule_26;
|
|
190
191
|
|
|
191
|
-
import rule_27 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
192
|
+
import rule_27 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/secrets';
|
|
192
193
|
|
|
193
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
194
|
+
cache['bpmnlint-plugin-camunda-compat/secrets'] = rule_27;
|
|
194
195
|
|
|
195
|
-
import rule_28 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
196
|
+
import rule_28 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/sequence-flow-condition';
|
|
196
197
|
|
|
197
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
198
|
+
cache['bpmnlint-plugin-camunda-compat/sequence-flow-condition'] = rule_28;
|
|
198
199
|
|
|
199
|
-
import rule_29 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
200
|
+
import rule_29 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/signal-reference';
|
|
200
201
|
|
|
201
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
202
|
+
cache['bpmnlint-plugin-camunda-compat/signal-reference'] = rule_29;
|
|
202
203
|
|
|
203
|
-
import rule_30 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
204
|
+
import rule_30 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/start-event-form';
|
|
204
205
|
|
|
205
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
206
|
+
cache['bpmnlint-plugin-camunda-compat/start-event-form'] = rule_30;
|
|
206
207
|
|
|
207
|
-
import rule_31 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
208
|
+
import rule_31 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/subscription';
|
|
208
209
|
|
|
209
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
210
|
+
cache['bpmnlint-plugin-camunda-compat/subscription'] = rule_31;
|
|
210
211
|
|
|
211
|
-
import rule_32 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
212
|
+
import rule_32 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/task-schedule';
|
|
212
213
|
|
|
213
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
214
|
+
cache['bpmnlint-plugin-camunda-compat/task-schedule'] = rule_32;
|
|
214
215
|
|
|
215
|
-
import rule_33 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
216
|
+
import rule_33 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/timer';
|
|
216
217
|
|
|
217
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
218
|
+
cache['bpmnlint-plugin-camunda-compat/timer'] = rule_33;
|
|
218
219
|
|
|
219
|
-
import rule_34 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/user-task-
|
|
220
|
+
import rule_34 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/user-task-definition';
|
|
220
221
|
|
|
221
|
-
cache['bpmnlint-plugin-camunda-compat/user-task-
|
|
222
|
+
cache['bpmnlint-plugin-camunda-compat/user-task-definition'] = rule_34;
|
|
222
223
|
|
|
223
|
-
import rule_35 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
224
|
+
import rule_35 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/user-task-form';
|
|
224
225
|
|
|
225
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
226
|
+
cache['bpmnlint-plugin-camunda-compat/user-task-form'] = rule_35;
|
|
227
|
+
|
|
228
|
+
import rule_36 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/wait-for-completion';
|
|
229
|
+
|
|
230
|
+
cache['bpmnlint-plugin-camunda-compat/wait-for-completion'] = rule_36;
|
|
@@ -325,12 +325,17 @@ export function getErrorMessage(id, report) {
|
|
|
325
325
|
executionPlatformVersion
|
|
326
326
|
} = report;
|
|
327
327
|
|
|
328
|
+
const {
|
|
329
|
+
type,
|
|
330
|
+
allowedVersion
|
|
331
|
+
} = data;
|
|
332
|
+
|
|
328
333
|
// adjust FEEL message
|
|
329
|
-
if (
|
|
334
|
+
if (type === ERROR_TYPES.FEEL_EXPRESSION_INVALID) {
|
|
330
335
|
return 'Unparsable FEEL expression.';
|
|
331
336
|
}
|
|
332
337
|
|
|
333
|
-
if (
|
|
338
|
+
if (type === ERROR_TYPES.EXPRESSION_NOT_ALLOWED) {
|
|
334
339
|
return 'Cannot be an expression.';
|
|
335
340
|
}
|
|
336
341
|
|
|
@@ -376,11 +381,11 @@ export function getErrorMessage(id, report) {
|
|
|
376
381
|
return 'Result variable must be defined.';
|
|
377
382
|
}
|
|
378
383
|
|
|
379
|
-
if (id === 'errorCode' &&
|
|
384
|
+
if (id === 'errorCode' && type === ERROR_TYPES.PROPERTY_REQUIRED) {
|
|
380
385
|
return 'Code must be defined.';
|
|
381
386
|
}
|
|
382
387
|
|
|
383
|
-
if (id === 'escalationCode' &&
|
|
388
|
+
if (id === 'escalationCode' && type === ERROR_TYPES.PROPERTY_REQUIRED) {
|
|
384
389
|
return 'Code must be defined.';
|
|
385
390
|
}
|
|
386
391
|
|
|
@@ -412,7 +417,7 @@ export function getErrorMessage(id, report) {
|
|
|
412
417
|
return 'Type must be defined.';
|
|
413
418
|
}
|
|
414
419
|
|
|
415
|
-
if (id === 'timerEventDefinitionType' &&
|
|
420
|
+
if (id === 'timerEventDefinitionType' && type === ERROR_TYPES.PROPERTY_REQUIRED) {
|
|
416
421
|
return 'Type must be defined.';
|
|
417
422
|
}
|
|
418
423
|
|
|
@@ -420,7 +425,7 @@ export function getErrorMessage(id, report) {
|
|
|
420
425
|
&& [
|
|
421
426
|
ERROR_TYPES.EXTENSION_ELEMENT_REQUIRED,
|
|
422
427
|
ERROR_TYPES.PROPERTY_REQUIRED
|
|
423
|
-
].includes(
|
|
428
|
+
].includes(type)) {
|
|
424
429
|
return 'Subscription correlation key must be defined.';
|
|
425
430
|
}
|
|
426
431
|
|
|
@@ -429,10 +434,10 @@ export function getErrorMessage(id, report) {
|
|
|
429
434
|
}
|
|
430
435
|
|
|
431
436
|
if (id === 'formId') {
|
|
432
|
-
if (
|
|
437
|
+
if (type === ERROR_TYPES.PROPERTY_REQUIRED) {
|
|
433
438
|
return 'Form ID must be defined.';
|
|
434
|
-
} else if (
|
|
435
|
-
return 'Form ID
|
|
439
|
+
} else if (type === ERROR_TYPES.PROPERTY_NOT_ALLOWED) {
|
|
440
|
+
return getNotSupportedMessage('Form ID', allowedVersion);
|
|
436
441
|
}
|
|
437
442
|
}
|
|
438
443
|
|
|
@@ -449,7 +454,7 @@ export function getErrorMessage(id, report) {
|
|
|
449
454
|
}
|
|
450
455
|
|
|
451
456
|
if (/^.+-extensionProperty-[0-9]+-name$/.test(id)) {
|
|
452
|
-
return '
|
|
457
|
+
return getNotSupportedMessage('', allowedVersion);
|
|
453
458
|
}
|
|
454
459
|
|
|
455
460
|
if (id === 'userTaskImplementation') {
|
|
@@ -460,12 +465,12 @@ export function getErrorMessage(id, report) {
|
|
|
460
465
|
return 'Condition expression must be defined.';
|
|
461
466
|
}
|
|
462
467
|
|
|
463
|
-
if (id === 'timerEventDefinitionType' &&
|
|
464
|
-
return 'Type
|
|
468
|
+
if (id === 'timerEventDefinitionType' && type === ERROR_TYPES.PROPERTY_NOT_ALLOWED) {
|
|
469
|
+
return getNotSupportedMessage('Type', allowedVersion);
|
|
465
470
|
}
|
|
466
471
|
|
|
467
472
|
if (id === 'timerEventDefinitionValue') {
|
|
468
|
-
if (
|
|
473
|
+
if (type === ERROR_TYPES.EXPRESSION_REQUIRED) {
|
|
469
474
|
return 'Value must be defined.';
|
|
470
475
|
}
|
|
471
476
|
|
|
@@ -489,31 +494,31 @@ export function getErrorMessage(id, report) {
|
|
|
489
494
|
}
|
|
490
495
|
|
|
491
496
|
if (id === 'assignmentDefinitionCandidateUsers') {
|
|
492
|
-
return '
|
|
497
|
+
return getNotSupportedMessage('', allowedVersion);
|
|
493
498
|
}
|
|
494
499
|
|
|
495
500
|
if (id === 'taskScheduleDueDate') {
|
|
496
|
-
if (
|
|
497
|
-
return '
|
|
501
|
+
if (type === ERROR_TYPES.EXTENSION_ELEMENT_NOT_ALLOWED) {
|
|
502
|
+
return getNotSupportedMessage('', allowedVersion);
|
|
498
503
|
} else {
|
|
499
504
|
return 'Must be an ISO 8601 date.';
|
|
500
505
|
}
|
|
501
506
|
}
|
|
502
507
|
|
|
503
508
|
if (id === 'taskScheduleFollowUpDate') {
|
|
504
|
-
if (
|
|
505
|
-
return '
|
|
509
|
+
if (type === ERROR_TYPES.EXTENSION_ELEMENT_NOT_ALLOWED) {
|
|
510
|
+
return getNotSupportedMessage('', allowedVersion);
|
|
506
511
|
} else {
|
|
507
512
|
return 'Must be an ISO 8601 date.';
|
|
508
513
|
}
|
|
509
514
|
}
|
|
510
515
|
|
|
511
516
|
if (id === 'propagateAllParentVariables') {
|
|
512
|
-
return '
|
|
517
|
+
return getNotSupportedMessage('', allowedVersion);
|
|
513
518
|
}
|
|
514
519
|
|
|
515
520
|
if (id === 'linkName') {
|
|
516
|
-
if (
|
|
521
|
+
if (type === ERROR_TYPES.ELEMENT_PROPERTY_VALUE_DUPLICATED) {
|
|
517
522
|
return 'Must be unique.';
|
|
518
523
|
} else {
|
|
519
524
|
return 'Must be defined.';
|
|
@@ -599,4 +604,15 @@ function getBusinessObject(element) {
|
|
|
599
604
|
|
|
600
605
|
function isEmptyString(value) {
|
|
601
606
|
return isString(value) && value.trim() === '';
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
function getNotSupportedMessage(property, allowedVersion) {
|
|
610
|
+
|
|
611
|
+
if (allowedVersion) {
|
|
612
|
+
return property ?
|
|
613
|
+
`${ property } is only supported by Camunda ${ allowedVersion } or newer.` :
|
|
614
|
+
`Only supported by Camunda ${ allowedVersion } or newer.`;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
return property ? `${ property } is not supported.` : 'Not supported.';
|
|
602
618
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/linting",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.21.1",
|
|
4
4
|
"description": "Linting for Camunda",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -29,23 +29,23 @@
|
|
|
29
29
|
},
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@bpmn-io/diagram-js-ui": "^0.2.
|
|
33
|
-
"bpmn-moddle": "^
|
|
34
|
-
"bpmnlint": "^10.2.
|
|
35
|
-
"bpmnlint-plugin-camunda-compat": "^2.
|
|
32
|
+
"@bpmn-io/diagram-js-ui": "^0.2.3",
|
|
33
|
+
"bpmn-moddle": "^9.0.1",
|
|
34
|
+
"bpmnlint": "^10.2.3",
|
|
35
|
+
"bpmnlint-plugin-camunda-compat": "^2.20.2",
|
|
36
36
|
"bpmnlint-utils": "^1.0.2",
|
|
37
37
|
"camunda-bpmn-moddle": "^7.0.1",
|
|
38
38
|
"clsx": "^2.0.0",
|
|
39
39
|
"min-dash": "^4.0.0",
|
|
40
|
-
"min-dom": "^
|
|
40
|
+
"min-dom": "^5.1.1",
|
|
41
41
|
"modeler-moddle": "^0.2.0",
|
|
42
42
|
"semver-compare": "^1.0.0",
|
|
43
43
|
"zeebe-bpmn-moddle": "^1.1.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"bpmn-js": "^
|
|
47
|
-
"bpmn-js-element-templates": "^1.
|
|
48
|
-
"bpmn-js-properties-panel": "^5.
|
|
46
|
+
"bpmn-js": "^17.8.2",
|
|
47
|
+
"bpmn-js-element-templates": "^1.16.0",
|
|
48
|
+
"bpmn-js-properties-panel": "^5.17.1",
|
|
49
49
|
"camunda-bpmn-js-behaviors": "^1.3.0",
|
|
50
50
|
"chai": "^4.4.1",
|
|
51
51
|
"cross-env": "^7.0.3",
|