-
Notifications
You must be signed in to change notification settings - Fork 16
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
automatically detect and lint wrappers around log calls #21
Comments
As discussed in #20 (comment), something similar to printf-format checking should also be possible for log calls. /triage accepted |
@pohly: GitHub didn't allow me to assign the following users: jaythamke. Note that only kubernetes-sigs members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This issue has not been updated in over 1 year, and should be re-triaged. You can:
For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/ /remove-triage accepted |
/triage accepted |
@jaythamke: are you still interested in working on this? I was reminded again of this when re-activating kubernetes/kubernetes#121989. The new(ish) HandleErrorWithContext accepts key/value pairs:
It would be nice to get linting for that. |
Related: go-simpler/sloglint#22 |
When a wrapper functions accepts variadic arguments and passes them through to a log call, then the same rules as for that log call also apply to the wrapper.
logcheck previously side-stepped that issue by not allowing passing of unknown slices to log calls. #20 relaxed that.
The text was updated successfully, but these errors were encountered: