Skip to content
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 version tag linting #174

Merged
merged 2 commits into from
Sep 16, 2024
Merged

Fix version tag linting #174

merged 2 commits into from
Sep 16, 2024

Conversation

philippfromme
Copy link
Collaborator

@philippfromme philippfromme commented Sep 11, 2024

  • the no-version-tag rule will not lint the zeebe:versionTag attribute anymore, the scenario of binding by version tag with Camunda <8.6 is covered by the no-binding-type rule; as a result there will only be one lint error instead of two for what's essentially the same problem

image

  • the new version-tag rule will lint version tags and report and report an error if they're empty

image


Related to camunda/camunda-modeler#4519
Required by camunda/linting#117

An error will be reported by the `no-binding-type` rule so we don't need another error for the version tag itself.

Related to camunda/camunda-modeler#4519
Copy link
Member

@nikku nikku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I like how we clearly separate the two concerns ("is it supported", "is it configured correctly"). Good change.

@nikku nikku merged commit 789c51c into main Sep 16, 2024
3 checks passed
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Sep 16, 2024
@nikku nikku deleted the fix-version-tag branch September 16, 2024 14:12
@nikku
Copy link
Member

nikku commented Sep 16, 2024

@philippfromme anything learning you can share with the team regarding design of "validation", based off this PR? Likely relevant for the future.

Copy link
Member

@nikku nikku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could consider integration tests in this library, that cover more complex scenarios like this one, and ensure that rules and their validations play nicely, as intended, together.

@nikku
Copy link
Member

nikku commented Sep 16, 2024

Released as v2.26.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants