-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
gochecknoinits using undocumented name init #4697
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
Labels
bug
Something isn't working
Comments
Hello, I found the problem, I will fix it. As a temporary workaround, you can remove the issues:
exclude-rules:
- path: path/to/a/file.go
text: "don't use `init` function" |
7 tasks
chmouel
added a commit
to chmouel/pipelines-as-code
that referenced
this issue
May 6, 2024
this is a bug introduce in 1.58.0 golangci-lint and should be fixed soon but we can work around for now like this for now, see: golangci/golangci-lint#4697 fix some other yamllint error as well along the way. Signed-off-by: Chmouel Boudjnah <[email protected]>
chmouel
added a commit
to openshift-pipelines/pipelines-as-code
that referenced
this issue
May 6, 2024
this is a bug introduce in 1.58.0 golangci-lint and should be fixed soon but we can work around for now like this for now, see: golangci/golangci-lint#4697 fix some other yamllint error as well along the way. Signed-off-by: Chmouel Boudjnah <[email protected]>
joshuatcasey
added a commit
to vmware-tanzu/pinniped
that referenced
this issue
May 8, 2024
jimmidyson
added a commit
to nutanix-cloud-native/cluster-api-runtime-extensions-nutanix
that referenced
this issue
May 8, 2024
See golangci/golangci-lint#4697 for details and waiting on golangci/golangci-lint#4698 to be released before we can revert this fix.
jimmidyson
added a commit
to nutanix-cloud-native/cluster-api-runtime-extensions-nutanix
that referenced
this issue
May 8, 2024
See golangci/golangci-lint#4697 for details and waiting on golangci/golangci-lint#4698 to be released before we can revert this fix.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Welcome
Description of the problem
Since updating to v1.58.0 I'm getting the following errors:
directive `//nolint:gochecknoinits` is unused for linter "gochecknoinits" (nolintlint)
don't use `init` function (init)
If I change
//nolint:gochecknoinits
to//nolint:init
I getIt appears as though the linter was renamed in parts of the application but not all, and most importantly this change isn't documented.
Version of golangci-lint
Configuration
Go environment
Verbose output of running
A minimal reproducible example or link to a public repository
Validation
The text was updated successfully, but these errors were encountered: