Closed maksim-paskal closed 5 months ago
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.
Do I need to add all deprecated linters now in my configuration?
yes
@ldez how about disable-deprecated: true
?
#.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
Verbose output of running
A minimal reproducible example or link to a public repository
Validation