@camunda/linting 3.6.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.
package/lib/compiled-config.js
CHANGED
|
@@ -47,6 +47,7 @@ const rules = {
|
|
|
47
47
|
"camunda-compat/message-reference": "error",
|
|
48
48
|
"camunda-compat/no-candidate-users": "error",
|
|
49
49
|
"camunda-compat/no-expression": "error",
|
|
50
|
+
"camunda-compat/no-loop": "error",
|
|
50
51
|
"camunda-compat/no-multiple-none-start-events": "error",
|
|
51
52
|
"camunda-compat/no-propagate-all-parent-variables": "error",
|
|
52
53
|
"camunda-compat/no-signal-event-sub-process": "error",
|
|
@@ -148,58 +149,62 @@ import rule_17 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-expre
|
|
|
148
149
|
|
|
149
150
|
cache['bpmnlint-plugin-camunda-compat/no-expression'] = rule_17;
|
|
150
151
|
|
|
151
|
-
import rule_18 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-
|
|
152
|
+
import rule_18 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-loop';
|
|
152
153
|
|
|
153
|
-
cache['bpmnlint-plugin-camunda-compat/no-
|
|
154
|
+
cache['bpmnlint-plugin-camunda-compat/no-loop'] = rule_18;
|
|
154
155
|
|
|
155
|
-
import rule_19 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-
|
|
156
|
+
import rule_19 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-multiple-none-start-events';
|
|
156
157
|
|
|
157
|
-
cache['bpmnlint-plugin-camunda-compat/no-
|
|
158
|
+
cache['bpmnlint-plugin-camunda-compat/no-multiple-none-start-events'] = rule_19;
|
|
158
159
|
|
|
159
|
-
import rule_20 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-
|
|
160
|
+
import rule_20 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-propagate-all-parent-variables';
|
|
160
161
|
|
|
161
|
-
cache['bpmnlint-plugin-camunda-compat/no-
|
|
162
|
+
cache['bpmnlint-plugin-camunda-compat/no-propagate-all-parent-variables'] = rule_20;
|
|
162
163
|
|
|
163
|
-
import rule_21 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-
|
|
164
|
+
import rule_21 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-signal-event-sub-process';
|
|
164
165
|
|
|
165
|
-
cache['bpmnlint-plugin-camunda-compat/no-
|
|
166
|
+
cache['bpmnlint-plugin-camunda-compat/no-signal-event-sub-process'] = rule_21;
|
|
166
167
|
|
|
167
|
-
import rule_22 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-
|
|
168
|
+
import rule_22 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-task-schedule';
|
|
168
169
|
|
|
169
|
-
cache['bpmnlint-plugin-camunda-compat/no-
|
|
170
|
+
cache['bpmnlint-plugin-camunda-compat/no-task-schedule'] = rule_22;
|
|
170
171
|
|
|
171
|
-
import rule_23 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-
|
|
172
|
+
import rule_23 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-template';
|
|
172
173
|
|
|
173
|
-
cache['bpmnlint-plugin-camunda-compat/no-
|
|
174
|
+
cache['bpmnlint-plugin-camunda-compat/no-template'] = rule_23;
|
|
174
175
|
|
|
175
|
-
import rule_24 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
176
|
+
import rule_24 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/no-zeebe-properties';
|
|
176
177
|
|
|
177
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
178
|
+
cache['bpmnlint-plugin-camunda-compat/no-zeebe-properties'] = rule_24;
|
|
178
179
|
|
|
179
|
-
import rule_25 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
180
|
+
import rule_25 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/secrets';
|
|
180
181
|
|
|
181
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
182
|
+
cache['bpmnlint-plugin-camunda-compat/secrets'] = rule_25;
|
|
182
183
|
|
|
183
|
-
import rule_26 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
184
|
+
import rule_26 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/sequence-flow-condition';
|
|
184
185
|
|
|
185
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
186
|
+
cache['bpmnlint-plugin-camunda-compat/sequence-flow-condition'] = rule_26;
|
|
186
187
|
|
|
187
|
-
import rule_27 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
188
|
+
import rule_27 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/signal-reference';
|
|
188
189
|
|
|
189
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
190
|
+
cache['bpmnlint-plugin-camunda-compat/signal-reference'] = rule_27;
|
|
190
191
|
|
|
191
|
-
import rule_28 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
192
|
+
import rule_28 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/start-form';
|
|
192
193
|
|
|
193
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
194
|
+
cache['bpmnlint-plugin-camunda-compat/start-form'] = rule_28;
|
|
194
195
|
|
|
195
|
-
import rule_29 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
196
|
+
import rule_29 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/subscription';
|
|
196
197
|
|
|
197
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
198
|
+
cache['bpmnlint-plugin-camunda-compat/subscription'] = rule_29;
|
|
198
199
|
|
|
199
|
-
import rule_30 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
200
|
+
import rule_30 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/task-schedule';
|
|
200
201
|
|
|
201
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
202
|
+
cache['bpmnlint-plugin-camunda-compat/task-schedule'] = rule_30;
|
|
202
203
|
|
|
203
|
-
import rule_31 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/
|
|
204
|
+
import rule_31 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/timer';
|
|
204
205
|
|
|
205
|
-
cache['bpmnlint-plugin-camunda-compat/
|
|
206
|
+
cache['bpmnlint-plugin-camunda-compat/timer'] = rule_31;
|
|
207
|
+
|
|
208
|
+
import rule_32 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/user-task-form';
|
|
209
|
+
|
|
210
|
+
cache['bpmnlint-plugin-camunda-compat/user-task-form'] = rule_32;
|
|
@@ -144,8 +144,12 @@ export function getErrorMessage(report, executionPlatform, executionPlatformVers
|
|
|
144
144
|
return getEventBasedGatewayTargetNotAllowedErrorMessage(report);
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
if (type === ERROR_TYPES.
|
|
148
|
-
return
|
|
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
|
|
640
|
+
function getSecretExpressionFormatDeprecatedErrorMessage(report) {
|
|
637
641
|
const { data } = report;
|
|
638
642
|
|
|
639
643
|
const { property } = data;
|
|
640
644
|
|
|
641
|
-
return `Property <${ property }>
|
|
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.
|
|
302
|
-
return '
|
|
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.
|
|
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.
|
|
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",
|