-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Feature: Plugin lists #248
Comments
IMO, it might be ideal timing for this change. This change would break backwards compatibility with existing plugins, and so would the PR #247. If there has to be a break, it would be nice to break just once (in 2 ways) rather than twice. |
@skjdbg Can you point to a branch with your demo code? I guess it would really be one branch on svlint and a matching branch on svlint-plugin-sample. |
Would https://github.com/skjdbg/svlint-plugin-sample and https://github.com/skjdbg/svlint work ? I'm not sure if you want me to do a pull request for them or if you want something else. |
Yes, those would be fine but I can only see one branch (master) on each of those.
Looks pretty nice to me :) |
In future, it's easier to put changes on a dedicated branch, but these are quite small and only one commit is easy to read. |
Yes, to be honest I have never participated in any open-source project so I don't know how I should do things. |
No worries - It looks good to me :) |
Closing this issue as the feature was added by merging #255. |
While playing around with multiple plugin rules, I encountered 2 issues which I believe could solved through the same feature:
Allowing a plugin to return multiple rules would solve the issue since I could compile all my rules in one project and have only one argument to give to svlint.
I tried locally (on Windows) to make it so
get_plugin
returns aVec<*mut dyn Rule>
instead of a*mut dyn Rule
and modifying theload
method fromLinter
to expect that. This solution works great for me, however there might be a better way.The text was updated successfully, but these errors were encountered: