-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Allow custom binaries with custom linters #4427
Comments
Hello, It's fun because I'm currently working on a system to simplify the plugin system 😄 Your implementation doesn't fit with my design expectations. I will share my POC in a few days. |
To be clear the "massive headache" I was referring to is Go's plugin system. I don't see that there's anything you can do to make that much better. The only thing I care about is that I can install custom linters (probably in a custom binary) without having to use Go's plugin system. |
When I said "simplify the plugin system" I didn't talk about Go's plugin system 😉 I'm waiting for the merge of one PR, and once it's done you will see that my POC will, I hope, fit your needs. You are not alone in complaining about this, the idea of improving the extensibility of golangci-lint is a topic that I have thought about for a long time. I made important changes recently to the design of some pieces of golangci-lint. |
@ldez That looks good to me, I agree it closes this issue |
Can I ask you to give me more information about your usage of custom linters? example:
|
It's internal company usage in the sense that they are built specifically for linting rules I wanted to apply to our codebase. But it's 100% open source so anyone who wanted to could copy them, I just don't advertise/publish them, mostly because they're just good enough for my purposes and not polished.
The other two, |
Your feature request related to a problem? Please describe.
Adding a custom linter is a massive headache.
Describe the solution you'd like.
Provide a mechanism for creating wrapper binaries that register custom linters.
Describe alternatives you've considered.
Additional context.
I already implemented this. If this issue is received positively I will submit a PR.
The text was updated successfully, but these errors were encountered: