-
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
Be able to resolve local rules / define rules outside of a plug-in #81
Comments
Root causing this:
|
I'd be interested in a short summary, what you're trying to do: How do you want to configure / consume rules outside of a plug-in and how would you assume this works? |
Created a simple example to reproduce this case. |
@JessYan0913 Thanks for sharing your use-case. We want to look into this some time in the future. |
No. The cache is internal and not meant to fiddle around with. Instead: Consider how you mark your rules as local in |
How should i make it |
Not you should consider it, but we have to build it. It is a missing feature. As a workaround you have to define your rules in a dedicated bpmnlint plug-in. Local rules are not supported at the moment. |
OK, I hope I can use it as soon as possible 😂 |
@JessYan0913 hello, I currently have the same need as you. I need to supplement with my own rules. If you were able to add them, could you please share your experience on how you managed to do so? |
Maybe you can override requireLocal option to load your custom rules
I have not tested through, but a similar technique has used to load on a nextjs app. |
Folks I apprechiate your input on this topic! To drive this forward I propose that someone contributes a "local rules" setup to our integration tests. We could then go ahead and turn the nobs to make it happen:
|
Is your feature request related to a problem? Please describe
The linter can be configured using
NodeResolver
,StaticResolver
or a custom one. Figuring out how to do this is quite difficult (cf. https://github.com/camunda/web-modeler/pull/1249#issuecomment-1125971172). In fact defining local rules is impossible at the moment.Describe the solution you'd like
There should be a well documented way how to configure a custom lint rule outside of a plug-in:
Describe alternatives you've considered
Using the source code and the tests I eventually figured out how to configure the linter but it took me quite long, and I don't know if I did it the way it's intended (cf. camunda/camunda-modeler#2958).
The text was updated successfully, but these errors were encountered: