bpmnlint 11.3.0 → 11.4.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.
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.3.0",
4
+ "version": "11.4.0",
5
5
  "main": "lib/index.js",
6
6
  "keywords": [
7
7
  "bpmnlint",
package/rules/helper.js CHANGED
@@ -17,7 +17,7 @@ const {
17
17
  *
18
18
  * @return { RuleFactory } ruleFactory
19
19
  */
20
- function disallowNodeType(type, ruleName) {
20
+ function checkDiscouragedNodeType(type, ruleName) {
21
21
 
22
22
  /**
23
23
  * @type { RuleFactory }
@@ -27,7 +27,7 @@ function disallowNodeType(type, ruleName) {
27
27
  function check(node, reporter) {
28
28
 
29
29
  if (is(node, type)) {
30
- reporter.report(node.id, 'Element has disallowed type <' + type + '>');
30
+ reporter.report(node.id, 'Element type <' + type + '> is discouraged');
31
31
  }
32
32
  }
33
33
 
@@ -39,7 +39,7 @@ function disallowNodeType(type, ruleName) {
39
39
 
40
40
  }
41
41
 
42
- module.exports.disallowNodeType = disallowNodeType;
42
+ module.exports.checkDiscouragedNodeType = checkDiscouragedNodeType;
43
43
 
44
44
 
45
45
  /**
@@ -1,3 +1,3 @@
1
- const disallowNodeType = require('./helper').disallowNodeType;
1
+ const checkDiscouragedNodeType = require('./helper').checkDiscouragedNodeType;
2
2
 
3
- module.exports = disallowNodeType('bpmn:ComplexGateway', 'no-complex-gateway');
3
+ module.exports = checkDiscouragedNodeType('bpmn:ComplexGateway', 'no-complex-gateway');
@@ -1,3 +1,3 @@
1
- const disallowNodeType = require('./helper').disallowNodeType;
1
+ const checkDiscouragedNodeType = require('./helper').checkDiscouragedNodeType;
2
2
 
3
- module.exports = disallowNodeType('bpmn:InclusiveGateway', 'no-inclusive-gateway');
3
+ module.exports = checkDiscouragedNodeType('bpmn:InclusiveGateway', 'no-inclusive-gateway');