bpmnlint-plugin-camunda-compat 2.49.1 → 2.50.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.
Files changed (72) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +91 -91
  3. package/index.js +326 -320
  4. package/package.json +57 -57
  5. package/rules/camunda-cloud/ad-hoc-sub-process.js +96 -96
  6. package/rules/camunda-cloud/before-all-execution-listener.js +60 -0
  7. package/rules/camunda-cloud/called-element.js +44 -44
  8. package/rules/camunda-cloud/collapsed-subprocess.js +40 -40
  9. package/rules/camunda-cloud/connector-properties/config.js +90 -90
  10. package/rules/camunda-cloud/connector-properties/index.js +47 -47
  11. package/rules/camunda-cloud/duplicate-execution-listener-headers.js +38 -38
  12. package/rules/camunda-cloud/duplicate-execution-listeners.js +33 -33
  13. package/rules/camunda-cloud/duplicate-task-headers.js +58 -58
  14. package/rules/camunda-cloud/element-type/config.js +70 -70
  15. package/rules/camunda-cloud/element-type/index.js +135 -135
  16. package/rules/camunda-cloud/error-reference.js +72 -72
  17. package/rules/camunda-cloud/escalation-boundary-event-attached-to-ref.js +47 -47
  18. package/rules/camunda-cloud/escalation-reference.js +67 -67
  19. package/rules/camunda-cloud/event-based-gateway-target.js +38 -38
  20. package/rules/camunda-cloud/executable-process.js +61 -61
  21. package/rules/camunda-cloud/execution-listener.js +33 -33
  22. package/rules/camunda-cloud/feel.js +112 -112
  23. package/rules/camunda-cloud/implementation/config.js +20 -20
  24. package/rules/camunda-cloud/implementation/index.js +234 -234
  25. package/rules/camunda-cloud/inclusive-gateway.js +35 -35
  26. package/rules/camunda-cloud/io-mapping.js +45 -45
  27. package/rules/camunda-cloud/link-event.js +142 -142
  28. package/rules/camunda-cloud/loop-characteristics.js +66 -66
  29. package/rules/camunda-cloud/message-reference.js +61 -61
  30. package/rules/camunda-cloud/no-before-all-execution-listener.js +53 -0
  31. package/rules/camunda-cloud/no-binding-type.js +43 -43
  32. package/rules/camunda-cloud/no-candidate-users.js +38 -38
  33. package/rules/camunda-cloud/no-execution-listener-headers.js +55 -55
  34. package/rules/camunda-cloud/no-execution-listeners.js +21 -21
  35. package/rules/camunda-cloud/no-expression.js +173 -173
  36. package/rules/camunda-cloud/no-interrupting-event-subprocess.js +47 -47
  37. package/rules/camunda-cloud/no-loop.js +317 -317
  38. package/rules/camunda-cloud/no-multiple-none-start-events.js +41 -41
  39. package/rules/camunda-cloud/no-priority-definition.js +18 -18
  40. package/rules/camunda-cloud/no-propagate-all-parent-variables.js +44 -44
  41. package/rules/camunda-cloud/no-signal-event-sub-process.js +45 -45
  42. package/rules/camunda-cloud/no-task-listeners.js +21 -21
  43. package/rules/camunda-cloud/no-task-schedule.js +18 -18
  44. package/rules/camunda-cloud/no-template.js +23 -23
  45. package/rules/camunda-cloud/no-version-tag.js +24 -24
  46. package/rules/camunda-cloud/no-zeebe-properties.js +18 -18
  47. package/rules/camunda-cloud/no-zeebe-user-task.js +27 -27
  48. package/rules/camunda-cloud/priority-definition.js +63 -63
  49. package/rules/camunda-cloud/secrets.js +119 -119
  50. package/rules/camunda-cloud/sequence-flow-condition.js +56 -56
  51. package/rules/camunda-cloud/signal-reference.js +64 -64
  52. package/rules/camunda-cloud/start-event-form.js +97 -97
  53. package/rules/camunda-cloud/subscription.js +65 -65
  54. package/rules/camunda-cloud/task-listener.js +39 -39
  55. package/rules/camunda-cloud/task-schedule.js +67 -67
  56. package/rules/camunda-cloud/timer/config.js +46 -46
  57. package/rules/camunda-cloud/timer/index.js +183 -183
  58. package/rules/camunda-cloud/user-task-definition.js +24 -24
  59. package/rules/camunda-cloud/user-task-form.js +142 -142
  60. package/rules/camunda-cloud/variable-name.js +104 -104
  61. package/rules/camunda-cloud/wait-for-completion.js +46 -46
  62. package/rules/camunda-cloud/zeebe-user-task.js +30 -30
  63. package/rules/camunda-platform/history-time-to-live.js +24 -24
  64. package/rules/helper.js +38 -38
  65. package/rules/utils/cron.js +95 -95
  66. package/rules/utils/element.js +533 -533
  67. package/rules/utils/error-types.js +26 -26
  68. package/rules/utils/iso8601.js +52 -52
  69. package/rules/utils/reporter.js +37 -37
  70. package/rules/utils/rule.js +46 -46
  71. package/rules/utils/variable-name.js +4 -4
  72. package/rules/utils/version.js +10 -10
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2021-present bpmn.io Contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021-present bpmn.io Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
21
  THE SOFTWARE.
package/README.md CHANGED
@@ -1,91 +1,91 @@
1
- # bpmnlint-plugin-camunda-compat
2
-
3
- [![CI](https://github.com/camunda/bpmnlint-plugin-camunda-compat/workflows/CI/badge.svg)](https://github.com/camunda/bpmnlint-plugin-camunda-compat/actions?query=workflow%3ACI)
4
-
5
- A [bpmnlint](https://github.com/bpmn-io/bpmnlint) plug-in that checks whether a given BPMN process can be executed with [Camunda](https://camunda.com/).
6
-
7
- ## Installation
8
-
9
- To use the plug-in, ensure it is installed is installed in your project, alongside [bpmnlint](https://github.com/bpmn-io/bpmnlint):
10
-
11
- ```sh
12
- npm install -D bpmnlint bpmnlint-plugin-camunda-compat
13
- ```
14
-
15
- ## Usage
16
-
17
- Add configuration corresponding to your execution platform and version to your [`.bpmnlintrc` configuration](https://github.com/bpmn-io/bpmnlint#configuration):
18
-
19
- ```jsonc
20
- {
21
- "extends": [
22
- "bpmnlint:recommended",
23
- "plugin:camunda-compat/camunda-cloud-8-0"
24
- ],
25
- "rules": {
26
- "camunda-compat/called-element": "off",
27
-
28
- // some rules require a config with version to be provided
29
- "camunda-compat/timer": ["warn", { "version": "8.0" }]
30
- }
31
- }
32
- ```
33
-
34
- > [!WARNING]
35
- > BPMN diagrams validated must be parsed with the respective [Camunda 7](https://github.com/camunda/camunda-bpmn-moddle) or [Camunda 8](https://github.com/camunda/zeebe-bpmn-moddle) moddle extension.
36
- >
37
- > See also [command line use](#command-line-use).
38
-
39
- ## Dynamic Linter Configuration
40
-
41
- Use [`@camunda/linting`](https://github.com/camunda/linting) to configure the linter dynamically based on the [execution platform and version](https://github.com/camunda/modeler-moddle).
42
-
43
- ## Command Line Use
44
-
45
- When using `bpmnlint` via the command line, ensure it picks up the respective [Camunda 7](https://github.com/camunda/camunda-bpmn-moddle) or [Camunda 8](https://github.com/camunda/zeebe-bpmn-moddle) moddle extension.
46
-
47
- For Camunda 8, install the [zeebe-bpmn-moddle extension](https://github.com/camunda/zeebe-bpmn-moddle):
48
-
49
- ```
50
- npm install bpmnlint zeebe-bpmn-moddle bpmnlint-plugin-camunda-compat
51
- ```
52
-
53
- Extend your configuration so bpmnlint picks-up the extension when parsing a BPMN diagram:
54
-
55
- ```diff
56
- --- .bpmnlintrc
57
- +++ .bpmnlintrc
58
- @@ -1,9 +1,12 @@
59
- {
60
- "extends": [
61
- "bpmnlint:recommended",
62
- "plugin:camunda-compat/camunda-cloud-8-7"
63
- ],
64
- "rules": {
65
- "camunda-compat/timer": "off"
66
- + },
67
- + "moddleExtensions": {
68
- + "zeebe": "zeebe-bpmn-moddle/resources/zeebe.json"
69
- }
70
- }
71
- ```
72
-
73
- Invoke `bpmnlint` from your command line in the usual ways:
74
-
75
- ```
76
- npx bpmnlint my-diagram.bpmn
77
- ```
78
-
79
- ## Resources
80
-
81
- * [Issues](https://github.com/camunda/bpmnlint-plugin-camunda-compat/issues)
82
-
83
-
84
- ## Related
85
-
86
- * BPMN coverage for [Camunda 8](https://docs.camunda.io/docs/reference/bpmn-processes/bpmn-coverage/) and [Camunda 7](https://docs.camunda.org/manual/latest/reference/bpmn20/)
87
-
88
-
89
- ## License
90
-
91
- MIT
1
+ # bpmnlint-plugin-camunda-compat
2
+
3
+ [![CI](https://github.com/camunda/bpmnlint-plugin-camunda-compat/workflows/CI/badge.svg)](https://github.com/camunda/bpmnlint-plugin-camunda-compat/actions?query=workflow%3ACI)
4
+
5
+ A [bpmnlint](https://github.com/bpmn-io/bpmnlint) plug-in that checks whether a given BPMN process can be executed with [Camunda](https://camunda.com/).
6
+
7
+ ## Installation
8
+
9
+ To use the plug-in, ensure it is installed is installed in your project, alongside [bpmnlint](https://github.com/bpmn-io/bpmnlint):
10
+
11
+ ```sh
12
+ npm install -D bpmnlint bpmnlint-plugin-camunda-compat
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ Add configuration corresponding to your execution platform and version to your [`.bpmnlintrc` configuration](https://github.com/bpmn-io/bpmnlint#configuration):
18
+
19
+ ```jsonc
20
+ {
21
+ "extends": [
22
+ "bpmnlint:recommended",
23
+ "plugin:camunda-compat/camunda-cloud-8-0"
24
+ ],
25
+ "rules": {
26
+ "camunda-compat/called-element": "off",
27
+
28
+ // some rules require a config with version to be provided
29
+ "camunda-compat/timer": ["warn", { "version": "8.0" }]
30
+ }
31
+ }
32
+ ```
33
+
34
+ > [!WARNING]
35
+ > BPMN diagrams validated must be parsed with the respective [Camunda 7](https://github.com/camunda/camunda-bpmn-moddle) or [Camunda 8](https://github.com/camunda/zeebe-bpmn-moddle) moddle extension.
36
+ >
37
+ > See also [command line use](#command-line-use).
38
+
39
+ ## Dynamic Linter Configuration
40
+
41
+ Use [`@camunda/linting`](https://github.com/camunda/linting) to configure the linter dynamically based on the [execution platform and version](https://github.com/camunda/modeler-moddle).
42
+
43
+ ## Command Line Use
44
+
45
+ When using `bpmnlint` via the command line, ensure it picks up the respective [Camunda 7](https://github.com/camunda/camunda-bpmn-moddle) or [Camunda 8](https://github.com/camunda/zeebe-bpmn-moddle) moddle extension.
46
+
47
+ For Camunda 8, install the [zeebe-bpmn-moddle extension](https://github.com/camunda/zeebe-bpmn-moddle):
48
+
49
+ ```
50
+ npm install bpmnlint zeebe-bpmn-moddle bpmnlint-plugin-camunda-compat
51
+ ```
52
+
53
+ Extend your configuration so bpmnlint picks-up the extension when parsing a BPMN diagram:
54
+
55
+ ```diff
56
+ --- .bpmnlintrc
57
+ +++ .bpmnlintrc
58
+ @@ -1,9 +1,12 @@
59
+ {
60
+ "extends": [
61
+ "bpmnlint:recommended",
62
+ "plugin:camunda-compat/camunda-cloud-8-7"
63
+ ],
64
+ "rules": {
65
+ "camunda-compat/timer": "off"
66
+ + },
67
+ + "moddleExtensions": {
68
+ + "zeebe": "zeebe-bpmn-moddle/resources/zeebe.json"
69
+ }
70
+ }
71
+ ```
72
+
73
+ Invoke `bpmnlint` from your command line in the usual ways:
74
+
75
+ ```
76
+ npx bpmnlint my-diagram.bpmn
77
+ ```
78
+
79
+ ## Resources
80
+
81
+ * [Issues](https://github.com/camunda/bpmnlint-plugin-camunda-compat/issues)
82
+
83
+
84
+ ## Related
85
+
86
+ * BPMN coverage for [Camunda 8](https://docs.camunda.io/docs/reference/bpmn-processes/bpmn-coverage/) and [Camunda 7](https://docs.camunda.org/manual/latest/reference/bpmn20/)
87
+
88
+
89
+ ## License
90
+
91
+ MIT