@camunda/linting 1.0.0 → 1.1.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.
|
@@ -412,6 +412,10 @@ function getPropertyRequiredErrorMessage(report, executionPlatform, executionPla
|
|
|
412
412
|
return `${ getIndefiniteArticle(typeString) } <${ typeString }> with <Message Reference> must have a defined <Name>`;
|
|
413
413
|
}
|
|
414
414
|
|
|
415
|
+
if (is(node, 'bpmn:Signal') && requiredProperty === 'name') {
|
|
416
|
+
return `${ getIndefiniteArticle(typeString) } <${ typeString }> with <Signal Reference> must have a defined <Name>`;
|
|
417
|
+
}
|
|
418
|
+
|
|
415
419
|
if (is(node, 'zeebe:Subscription') && requiredProperty === 'correlationKey') {
|
|
416
420
|
return `${ getIndefiniteArticle(typeString) } <${ typeString }> with <Message Reference> must have a defined <Subscription correlation key>`;
|
|
417
421
|
}
|
|
@@ -434,6 +438,10 @@ function getPropertyRequiredErrorMessage(report, executionPlatform, executionPla
|
|
|
434
438
|
return `${ getIndefiniteArticle(typeString) } <${ typeString }> must have a defined <Message Reference>`;
|
|
435
439
|
}
|
|
436
440
|
|
|
441
|
+
if (requiredProperty === 'signalRef') {
|
|
442
|
+
return `${ getIndefiniteArticle(typeString) } <${ typeString }> must have a defined <Signal Reference>`;
|
|
443
|
+
}
|
|
444
|
+
|
|
437
445
|
if (is(node, 'zeebe:FormDefinition') && requiredProperty === 'formKey') {
|
|
438
446
|
return `${ getIndefiniteArticle(typeString) } <${ typeString }> with <Form type: Custom form key> must have a defined <Form key>`;
|
|
439
447
|
}
|
|
@@ -76,6 +76,10 @@ export function getEntryIds(report) {
|
|
|
76
76
|
return [ 'messageRef' ];
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
+
if (isPropertyError(data, 'signalRef')) {
|
|
80
|
+
return [ 'signalRef' ];
|
|
81
|
+
}
|
|
82
|
+
|
|
79
83
|
if (isPropertyError(data, 'decisionId', 'zeebe:CalledDecision')) {
|
|
80
84
|
return [ 'decisionId' ];
|
|
81
85
|
}
|
|
@@ -100,6 +104,10 @@ export function getEntryIds(report) {
|
|
|
100
104
|
return [ 'messageName' ];
|
|
101
105
|
}
|
|
102
106
|
|
|
107
|
+
if (isPropertyError(data, 'name', 'bpmn:Signal')) {
|
|
108
|
+
return [ 'signalName' ];
|
|
109
|
+
}
|
|
110
|
+
|
|
103
111
|
if (isExtensionElementRequiredError(data, 'zeebe:LoopCharacteristics', 'bpmn:MultiInstanceLoopCharacteristics')
|
|
104
112
|
|| isPropertyError(data, 'inputCollection', 'zeebe:LoopCharacteristics')) {
|
|
105
113
|
return [ 'multiInstance-inputCollection' ];
|
|
@@ -286,6 +294,10 @@ export function getErrorMessage(id, report) {
|
|
|
286
294
|
return 'Global message reference must be defined.';
|
|
287
295
|
}
|
|
288
296
|
|
|
297
|
+
if (id === 'signalRef') {
|
|
298
|
+
return 'Global signal reference must be defined.';
|
|
299
|
+
}
|
|
300
|
+
|
|
289
301
|
if (id === 'decisionId') {
|
|
290
302
|
return 'Decision ID must be defined.';
|
|
291
303
|
}
|
|
@@ -310,6 +322,10 @@ export function getErrorMessage(id, report) {
|
|
|
310
322
|
return 'Name must be defined.';
|
|
311
323
|
}
|
|
312
324
|
|
|
325
|
+
if (id === 'signalName') {
|
|
326
|
+
return 'Name must be defined.';
|
|
327
|
+
}
|
|
328
|
+
|
|
313
329
|
if (id === 'multiInstance-inputCollection') {
|
|
314
330
|
return 'Input collection must be defined.';
|
|
315
331
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/linting",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Linting for Camunda Platform",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"bpmn-moddle": "^8.0.0",
|
|
31
31
|
"bpmnlint": "^8.0.0",
|
|
32
|
-
"bpmnlint-plugin-camunda-compat": "^1.0
|
|
32
|
+
"bpmnlint-plugin-camunda-compat": "^1.1.0",
|
|
33
33
|
"bpmnlint-utils": "^1.0.2",
|
|
34
34
|
"min-dash": "^4.0.0",
|
|
35
35
|
"min-dom": "^4.1.0",
|