@camunda/linting 3.34.0 → 3.36.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.
|
@@ -157,6 +157,10 @@ export function getErrorMessage(report, executionPlatform, executionPlatformVers
|
|
|
157
157
|
return getLoopNotAllowedErrorMessage(report);
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
+
if (type === ERROR_TYPES.ATTACHED_TO_REF_ELEMENT_TYPE_NOT_ALLOWED) {
|
|
161
|
+
return getAttachedToRefElementTypeNotAllowed(report);
|
|
162
|
+
}
|
|
163
|
+
|
|
160
164
|
return message;
|
|
161
165
|
}
|
|
162
166
|
|
|
@@ -798,6 +802,17 @@ function getLoopNotAllowedErrorMessage(report) {
|
|
|
798
802
|
return `A <Process> is not allowed to contain a straight-through processing loop: ${ elements.map(element => `<${ element }>`).join(', ') }`;
|
|
799
803
|
}
|
|
800
804
|
|
|
805
|
+
function getAttachedToRefElementTypeNotAllowed(report) {
|
|
806
|
+
const { data } = report;
|
|
807
|
+
|
|
808
|
+
const { node , attachedToRef } = data;
|
|
809
|
+
|
|
810
|
+
const nodeTypeString = getTypeString(node);
|
|
811
|
+
const attachedToTypeString = getTypeString(attachedToRef);
|
|
812
|
+
|
|
813
|
+
return `${ getIndefiniteArticle(nodeTypeString) } <${nodeTypeString}> is not allowed on ${ getIndefiniteArticle(attachedToTypeString, false) } <${attachedToTypeString}>`;
|
|
814
|
+
}
|
|
815
|
+
|
|
801
816
|
function isEmptyString(value) {
|
|
802
817
|
return isString(value) && value.trim() === '';
|
|
803
818
|
}
|
|
@@ -229,6 +229,14 @@ export function getEntryIds(report) {
|
|
|
229
229
|
return [ 'multiInstance-completionCondition' ];
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
+
if (isPropertyError(data, 'completionCondition', 'bpmn:AdHocSubProcess')) {
|
|
233
|
+
return [ 'completionCondition' ];
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
if (isPropertyError(data, 'cancelRemainingInstances', 'bpmn:AdHocSubProcess')) {
|
|
237
|
+
return [ 'cancelRemainingInstances' ];
|
|
238
|
+
}
|
|
239
|
+
|
|
232
240
|
if (TIMER_PROPERTIES.some(property =>
|
|
233
241
|
isOneOfPropertiesRequiredError(data, property, 'bpmn:TimerEventDefinition'))
|
|
234
242
|
) {
|
|
@@ -447,6 +455,14 @@ export function getErrorMessage(id, report) {
|
|
|
447
455
|
return 'Output element must be defined.';
|
|
448
456
|
}
|
|
449
457
|
|
|
458
|
+
if (id === 'completionCondition' && type === ERROR_TYPES.PROPERTY_NOT_ALLOWED) {
|
|
459
|
+
return getNotSupportedMessage('', allowedVersion);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
if (id === 'cancelRemainingInstances' && type === ERROR_TYPES.PROPERTY_VALUE_NOT_ALLOWED) {
|
|
463
|
+
return 'Must be checked.';
|
|
464
|
+
}
|
|
465
|
+
|
|
450
466
|
if (id === 'targetProcessId') {
|
|
451
467
|
return 'Process ID must be defined.';
|
|
452
468
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/linting",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.36.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": "^11.4.1",
|
|
35
|
-
"bpmnlint-plugin-camunda-compat": "^2.
|
|
35
|
+
"bpmnlint-plugin-camunda-compat": "^2.34.1",
|
|
36
36
|
"bpmnlint-utils": "^1.0.2",
|
|
37
37
|
"camunda-bpmn-moddle": "^7.0.1",
|
|
38
38
|
"clsx": "^2.0.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"bpmn-js": "^18.3.1",
|
|
47
47
|
"bpmn-js-element-templates": "^2.5.3",
|
|
48
|
-
"bpmn-js-properties-panel": "^5.
|
|
48
|
+
"bpmn-js-properties-panel": "^5.34.0",
|
|
49
49
|
"camunda-bpmn-js-behaviors": "^1.9.1",
|
|
50
50
|
"chai": "^4.5.0",
|
|
51
51
|
"cross-env": "^7.0.3",
|