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
package/rules/helper.js
CHANGED
|
@@ -17,7 +17,7 @@ const {
|
|
|
17
17
|
*
|
|
18
18
|
* @return { RuleFactory } ruleFactory
|
|
19
19
|
*/
|
|
20
|
-
function
|
|
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
|
|
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.
|
|
42
|
+
module.exports.checkDiscouragedNodeType = checkDiscouragedNodeType;
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const
|
|
1
|
+
const checkDiscouragedNodeType = require('./helper').checkDiscouragedNodeType;
|
|
2
2
|
|
|
3
|
-
module.exports =
|
|
3
|
+
module.exports = checkDiscouragedNodeType('bpmn:ComplexGateway', 'no-complex-gateway');
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const
|
|
1
|
+
const checkDiscouragedNodeType = require('./helper').checkDiscouragedNodeType;
|
|
2
2
|
|
|
3
|
-
module.exports =
|
|
3
|
+
module.exports = checkDiscouragedNodeType('bpmn:InclusiveGateway', 'no-inclusive-gateway');
|