1
This commit is contained in:
20
openhis-ui/bpmnlint-plugin-local/rules/target-namespace.js
Normal file
20
openhis-ui/bpmnlint-plugin-local/rules/target-namespace.js
Normal file
@@ -0,0 +1,20 @@
|
||||
const {
|
||||
is
|
||||
} = require('bpmnlint-utils');
|
||||
|
||||
|
||||
/**
|
||||
* Rule that reports missing targetNamespace on bpmn:Definitions.
|
||||
*/
|
||||
module.exports = function() {
|
||||
|
||||
function check(node, reporter) {
|
||||
if (is(node, 'bpmn:Definitions') && !node.targetNamespace) {
|
||||
reporter.report(node.id, 'Element is missing targetNamespace');
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
check: check
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user