-
-
Notifications
You must be signed in to change notification settings - Fork 303
feat(pack): add golangci-lint #1438
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
Conversation
Review ChecklistDoes this PR follow the [Contribution Guidelines](development guidelines)? Following is a partial checklist: Proper conventional commit scoping:
|
Uzaaft
left a comment
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.
Why not add this into the go pack?
|
Can be. I thought to keep it modular. Not entirely sure how common this tool is in the Go world. As an example ESlint is kind of a standard at this point in js/ts. |
|
If this one is dependent of the go pack maybe this one should import it so users don't need to do I also can't see a linter in the current go pack but I assume this is built into another tool. I'm not that familiar with the go eco system. |
|
That's a good idea to bundle them together. I was playing around with a more modular design approach to community packs. If there are no hard dependencies between them then maybe it's better not to hardcore and let the people choose. To help avoid mega packs like typescript. In this case it does make sense since why would anyone use it without a go pack. |
1e61e72 to
c9148bf
Compare
gopls (lsp) has some linting built in that's quite good. This just adds a lot of community tooling that are out there. As an example can check out this config: https://gist.github.com/maratori/47a4d00457a92aa426dbd48a18776322 |
📑 Description
This pack adds golangci-lint support using the golangci-lint-langserver.
ℹ Additional Information
Not sure If it needs to be backwards compatible between golangci-lint v1 and v2. Also not sure about AstroNvim v4 and v5. So it just uses latest version of all and requires astro v5.
A custom lsp config override is needed, but it seems to work fine nametake/golangci-lint-langserver#51