-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Running v1.56.0 version throws panics, v1.55.2 works fine #4361
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
Hello @maksim-paskal, interfacer is deprecated. Can you add this to your configuration? linters:
enable-all: true
disable:
- deadcode # deprecated
- exhaustivestruct # deprecated
- golint # deprecated
- ifshort # deprecated
- interfacer # deprecated
- maligned # deprecated
- nosnakecase # deprecated
- scopelint # deprecated
- structcheck # deprecated
- varcheck # deprecated
- gochecknoglobals
- exhaustivestruct
- exhaustruct
- varnamelen
- musttag
- depguard |
@ldez thanks for quick answer, yes it helps Do I need to add all deprecated linters now in my configuration? |
I tried your repository and my suggestion fix your problem. Interfacer is a very very old linter, deprecated for years.
yes |
@ldez how about #.golangci.yml
run:
timeout: 5m
issues:
fix: true
linters:
enable-all: true
disable-deprecated: true
disable:
- gochecknoglobals
- exhaustivestruct
- exhaustruct
- varnamelen
- musttag
- depguard I try to use all new linters by default. I did not pay attention to deprecated linters, perhaps other users do the same. |
The lifecycle deprecated linters is something discussed in #1987. FYI the deprecation are displayed when you run golangci-lint: $ golangci-lint run
WARN [runner] The linter 'structcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused.
WARN [runner] The linter 'varcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused.
WARN [runner] The linter 'interfacer' is deprecated (since v1.38.0) due to: The repository of the linter has been archived by the owner.
WARN [runner] The linter 'nosnakecase' is deprecated (since v1.48.1) due to: The repository of the linter has been deprecated by the owner. Replaced by revive(var-naming).
WARN [runner] The linter 'maligned' is deprecated (since v1.38.0) due to: The repository of the linter has been archived by the owner. Replaced by govet 'fieldalignment'.
WARN [runner] The linter 'golint' is deprecated (since v1.41.0) due to: The repository of the linter has been archived by the owner. Replaced by revive.
WARN [runner] The linter 'scopelint' is deprecated (since v1.39.0) due to: The repository of the linter has been deprecated by the owner. Replaced by exportloopref.
WARN [runner] The linter 'deadcode' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused.
WARN [runner] The linter 'ifshort' is deprecated (since v1.48.0) due to: The repository of the linter has been deprecated by the owner. |
Welcome
Description of the problem
Running today latest version
throws panics
Version of golangci-lint
Configuration
Go environment
go version go1.21.5 darwin/amd64
Verbose output of running
A minimal reproducible example or link to a public repository
https://github.com/maksim-paskal/aks-node-termination-handler
Validation
The text was updated successfully, but these errors were encountered: