bpmnlint 11.5.0 → 11.6.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/README.md CHANGED
@@ -75,6 +75,33 @@ You may also extend from multiple configurations, including those provided by [c
75
75
 
76
76
  This will amend core `recommended` rules with `recommended` rulesets provided by `bpmnlint-plugin-foo` and `@bar/bpmnlint-plugin-bar`, respectively.
77
77
 
78
+ Plug-ins will be resolved relative to the configuration file location, using [node module resolution](https://nodejs.org/api/modules.html#loading-from-node_modules-folders).
79
+
80
+
81
+ ### Available Configurations
82
+
83
+ * [`bpmnlint:all`](./config/all.js) - all rules as errors
84
+ * [`bpmnlint:recommended`](./config/recommended.js) - opinionated rules ("best practices") and rules enforcing BPMN compliance
85
+ * [`bpmnlint:correctness`](./config/correctness.js) - rules enforcing BPMN compliance
86
+
87
+ ### Moddle extensions
88
+
89
+ To validate your diagrams with custom [moddle](https://github.com/bpmn-io/moddle) extensions, add `moddleExtensions` to the root configuration file:
90
+
91
+ ```json
92
+ {
93
+ "extends": [
94
+ "bpmnlint:recommended",
95
+ "plugin:custom/recommended"
96
+ ],
97
+ "moddleExtensions": {
98
+ "custom": "custom-bpmn-moddle/resources/custom.json"
99
+ }
100
+ }
101
+ ```
102
+
103
+ The extension will be resolved relative to the configuration file location, using [node module resolution](https://nodejs.org/api/modules.html#loading-from-node_modules-folders).
104
+
78
105
  ## API
79
106
 
80
107
  Invoke the tool directly from [NodeJS](https://nodejs.org/en):
@@ -4,6 +4,7 @@ module.exports = {
4
4
  'event-sub-process-typed-start-event': 'error',
5
5
  'link-event': 'error',
6
6
  'no-duplicate-sequence-flows': 'warn',
7
- 'sub-process-blank-start-event': 'error'
7
+ 'sub-process-blank-start-event': 'error',
8
+ 'single-blank-start-event': 'error'
8
9
  }
9
10
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bpmnlint",
3
3
  "description": "Validate your BPMN diagrams based on configurable lint rules",
4
- "version": "11.5.0",
4
+ "version": "11.6.1",
5
5
  "main": "lib/index.js",
6
6
  "keywords": [
7
7
  "bpmnlint",
@@ -34,13 +34,6 @@ module.exports = function() {
34
34
  if (is(flowElement, 'bpmn:EndEvent')) {
35
35
  reporter.report(flowElement.id, 'An <End Event> is not allowed in <Ad Hoc Sub Process>');
36
36
  }
37
-
38
- if (is(flowElement, 'bpmn:IntermediateCatchEvent')) {
39
- if (!flowElement.outgoing || flowElement.outgoing.length === 0) {
40
- reporter.report(flowElement.id, 'An intermediate catch event inside <Ad Hoc Sub Process> must have an outgoing sequence flow');
41
- }
42
- }
43
-
44
37
  });
45
38
  }
46
39
 
@@ -29,7 +29,7 @@ module.exports = function() {
29
29
  }
30
30
  }
31
31
 
32
- return annotateRule('no-gateway-fork-join', {
32
+ return annotateRule('no-gateway-join-fork', {
33
33
  check
34
34
  });
35
35