@camunda/linting 3.15.0 → 3.16.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.
@@ -39,7 +39,7 @@ const rules = {
39
39
  "camunda-compat/event-based-gateway-target": "error",
40
40
  "camunda-compat/executable-process": "error",
41
41
  "camunda-compat/feel": "error",
42
- "camunda-compat/history-time-to-live": "error",
42
+ "camunda-compat/history-time-to-live": "info",
43
43
  "camunda-compat/implementation": "error",
44
44
  "camunda-compat/inclusive-gateway": "error",
45
45
  "camunda-compat/link-event": "error",
@@ -54,13 +54,14 @@ const rules = {
54
54
  "camunda-compat/no-task-schedule": "error",
55
55
  "camunda-compat/no-template": "error",
56
56
  "camunda-compat/no-zeebe-properties": "error",
57
- "camunda-compat/secrets": "error",
57
+ "camunda-compat/secrets": "warn",
58
58
  "camunda-compat/sequence-flow-condition": "error",
59
59
  "camunda-compat/signal-reference": "error",
60
60
  "camunda-compat/start-event-form": "error",
61
61
  "camunda-compat/subscription": "error",
62
62
  "camunda-compat/task-schedule": "error",
63
63
  "camunda-compat/timer": "error",
64
+ "camunda-compat/user-task-definition": "warn",
64
65
  "camunda-compat/user-task-form": "error"
65
66
  };
66
67
 
@@ -205,6 +206,10 @@ import rule_31 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/timer';
205
206
 
206
207
  cache['bpmnlint-plugin-camunda-compat/timer'] = rule_31;
207
208
 
208
- import rule_32 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/user-task-form';
209
+ import rule_32 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/user-task-definition';
209
210
 
210
- cache['bpmnlint-plugin-camunda-compat/user-task-form'] = rule_32;
211
+ cache['bpmnlint-plugin-camunda-compat/user-task-definition'] = rule_32;
212
+
213
+ import rule_33 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/user-task-form';
214
+
215
+ cache['bpmnlint-plugin-camunda-compat/user-task-form'] = rule_33;
@@ -25,6 +25,10 @@ export function getDocumentationUrl(rule) {
25
25
  return getUrl('message-reference');
26
26
  }
27
27
 
28
+ if (rule === 'camunda-compat/history-time-to-live') {
29
+ return getUrl('history-time-to-live');
30
+ }
31
+
28
32
  return null;
29
33
  }
30
34
 
@@ -328,7 +328,7 @@ function getExtensionElementRequiredErrorMessage(report) {
328
328
  }
329
329
 
330
330
  if (requiredExtensionElement === 'zeebe:FormDefinition') {
331
- return `${ getIndefiniteArticle(typeString) } <${ typeString }> must have a defined <Form>`;
331
+ return `${ getIndefiniteArticle(typeString) } <${ typeString }> should have a defined <Form>`;
332
332
  }
333
333
 
334
334
  return message;
@@ -472,10 +472,6 @@ export function getErrorMessage(id, report) {
472
472
  return 'Not supported.';
473
473
  }
474
474
 
475
- if (id === 'historyTimeToLive') {
476
- return 'Time to live must be defined.';
477
- }
478
-
479
475
  if (id === 'taskScheduleDueDate') {
480
476
  if (data.type === ERROR_TYPES.EXTENSION_ELEMENT_NOT_ALLOWED) {
481
477
  return 'Not supported.';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/linting",
3
- "version": "3.15.0",
3
+ "version": "3.16.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.2",
33
33
  "bpmn-moddle": "^8.1.0",
34
34
  "bpmnlint": "^10.2.0",
35
- "bpmnlint-plugin-camunda-compat": "^2.15.0",
35
+ "bpmnlint-plugin-camunda-compat": "^2.16.0",
36
36
  "bpmnlint-utils": "^1.0.2",
37
37
  "camunda-bpmn-moddle": "^7.0.1",
38
38
  "clsx": "^2.0.0",
@@ -76,6 +76,7 @@
76
76
  "files": [
77
77
  "assets",
78
78
  "lib",
79
+ "index.js",
79
80
  "modeler.js"
80
81
  ],
81
82
  "publishConfig": {