@camunda/linting 3.7.0 → 3.7.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.
@@ -144,8 +144,12 @@ export function getErrorMessage(report, executionPlatform, executionPlatformVers
144
144
  return getEventBasedGatewayTargetNotAllowedErrorMessage(report);
145
145
  }
146
146
 
147
- if (type === ERROR_TYPES.SECRET_EXPRESSION_INVALID) {
148
- return getSecretExpressionInvalidErrorMessage(report);
147
+ if (type === ERROR_TYPES.SECRET_EXPRESSION_FORMAT_DEPRECATED) {
148
+ return getSecretExpressionFormatDeprecatedErrorMessage(report);
149
+ }
150
+
151
+ if (type === ERROR_TYPES.LOOP_NOT_ALLOWED) {
152
+ return getLoopNotAllowedErrorMessage(report);
149
153
  }
150
154
 
151
155
  return message;
@@ -633,12 +637,12 @@ function getPropertyValueNotAllowedErrorMessage(report, executionPlatform, execu
633
637
  return message;
634
638
  }
635
639
 
636
- function getSecretExpressionInvalidErrorMessage(report) {
640
+ function getSecretExpressionFormatDeprecatedErrorMessage(report) {
637
641
  const { data } = report;
638
642
 
639
643
  const { property } = data;
640
644
 
641
- return `Property <${ property }> is not a valid secret`;
645
+ return `Property <${ property }> uses deprecated secret expression format secrets.SECRET, use {{secrets.SECRET}} instead`;
642
646
  }
643
647
 
644
648
  function getElementPropertyValueDuplicatedErrorMessage(report) {
@@ -660,4 +664,12 @@ function getElementPropertyValueDuplicatedErrorMessage(report) {
660
664
  }
661
665
 
662
666
  return message;
667
+ }
668
+
669
+ function getLoopNotAllowedErrorMessage(report) {
670
+ const { data } = report;
671
+
672
+ const { elements } = data;
673
+
674
+ return `A <Process> is not allowed to contain a straight-through processing loop: ${ elements.map(element => `<${ element }>`).join(', ') }`;
663
675
  }
@@ -298,8 +298,8 @@ export function getErrorMessage(id, report) {
298
298
  return 'Cannot be an expression.';
299
299
  }
300
300
 
301
- if (data.type === ERROR_TYPES.SECRET_EXPRESSION_INVALID) {
302
- return 'Is not a valid secret.';
301
+ if (data.type === ERROR_TYPES.SECRET_EXPRESSION_FORMAT_DEPRECATED) {
302
+ return 'Secret expression format deprecated.';
303
303
  }
304
304
 
305
305
  if (id === 'isExecutable') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/linting",
3
- "version": "3.7.0",
3
+ "version": "3.7.1",
4
4
  "description": "Linting for Camunda Platform",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -32,7 +32,7 @@
32
32
  "@bpmn-io/diagram-js-ui": "^0.2.2",
33
33
  "bpmn-moddle": "^8.0.0",
34
34
  "bpmnlint": "^9.2.0",
35
- "bpmnlint-plugin-camunda-compat": "^2.7.0",
35
+ "bpmnlint-plugin-camunda-compat": "^2.7.1",
36
36
  "bpmnlint-utils": "^1.0.2",
37
37
  "clsx": "^2.0.0",
38
38
  "min-dash": "^4.0.0",