@camunda/linting 3.35.0 → 3.36.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.
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/linting",
3
- "version": "3.35.0",
3
+ "version": "3.36.1",
4
4
  "description": "Linting for Camunda",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -31,8 +31,8 @@
31
31
  "dependencies": {
32
32
  "@bpmn-io/diagram-js-ui": "^0.2.3",
33
33
  "bpmn-moddle": "^9.0.1",
34
- "bpmnlint": "^11.4.1",
35
- "bpmnlint-plugin-camunda-compat": "^2.34.0",
34
+ "bpmnlint": "^11.4.2",
35
+ "bpmnlint-plugin-camunda-compat": "^2.34.2",
36
36
  "bpmnlint-utils": "^1.0.2",
37
37
  "camunda-bpmn-moddle": "^7.0.1",
38
38
  "clsx": "^2.0.0",