Skip to content
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

Detects containedctx on library types #5

Open
DanielHilton opened this issue Nov 14, 2023 · 0 comments
Open

Detects containedctx on library types #5

DanielHilton opened this issue Nov 14, 2023 · 0 comments

Comments

@DanielHilton
Copy link

I have recently enabled this check via golangci-lint, and come across situations where the check is failing for a dependency's struct.

https://github.com/grpc/grpc-go/blob/master/clientconn.go

The ClientConn type contains a context.Context, and when a struct I write includes an instance of a pointer to this type, the check fails. I can't change the type, it's not my code. So the linter should ignore it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant