Add errgroupctx linter #6522
Unanswered
leonklingele
asked this question in
New Linter Proposals
Replies: 5 comments 6 replies
|
I have created a branch for the integration already: https://github.com/leonklingele/golangci-lint/commits/feat/add-errgroupctx/ |
0 replies
|
The implementation is not right:
The idea is interesting, but the implementation is not Go idiomatic, elements must be removed, the name of the module and the repo should be cleaned. |
5 replies
|
Note for @leonklingele: let's the author of an analyzer opening a discussion for its analyzer. If a linter seems interesting to you, I recommend opening an issue on the analyzer repository to ask the author for doing the process. Edit: an issue already exists and the author was on the road to follow the process. |
0 replies
|
@ldez Hi there! Should I open a new discussion? |
1 reply
This comment was marked as off-topic.
This comment was marked as off-topic.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Repository URL
https://github.com/m-ocean-it/errgroup-ctx-lint
Analyzer Requirements
go/analysis.go.mod<= 1.25.0.Analyzer Goal
Finds bugs
Analyzer Description
Quoting the README:
This linter catches cases when, within an error-group goroutine, a non-errgroup context is passed to a function or method, while there is a context, specifically attached to the said errgroup. In most cases, you want that specific context to be passed to functions invoked within the errgroup's Go methods.
Analyzer License
GPL-3.0-only
Analyzer License Checks
LICENSE(capitalized).Analyzer Details
init().panic().log.Fatal().os.Exit().Repository Details
v1.0.0,v0.1.0(0.0.xare not valid).Repository Recommendations
.gitignore(IDE files, binaries, OS files, etc. should not be committed).mainas the default branch name.Pull Request
All reactions