-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: no no-implicit-end error on compensation activity #144
Conversation
rules/no-implicit-end.js
Outdated
@@ -32,6 +44,14 @@ module.exports = function() { | |||
return false; | |||
} | |||
|
|||
if (is(node, 'bpmn:BoundaryEvent') && isCompensationEventDefinition(node)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
99c621a
to
306ec92
Compare
306ec92
to
3e5b910
Compare
rules/no-implicit-end.js
Outdated
@@ -48,3 +82,21 @@ module.exports = function() { | |||
|
|||
return { check }; | |||
}; | |||
|
|||
function findParent(node, type) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add this function to the utils and import it.
3e5b910
to
adf34b7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job! Just added a couple of small adjustments.
Closes #140
Proposed Changes
no-implicit-error
Checklist
To ensure you provided everything we need to look at your PR:
@bpmn-io/sr
toolCloses {LINK_TO_ISSUE}
orRelated to {LINK_TO_ISSUE}