How to keep the linters in the config file updated for the new versions? #1887
-
I'm using the below config file. linters:
# please, do not use `enable-all`: it's deprecated and will be removed soon.
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
disable-all: true
enable:
- bodyclose
- deadcode
# - depguard
- dogsled
- dupl
- errcheck
- errorlint
- exhaustive
# - exhaustivestruct
- exportloopref
- forbidigo
- funlen
# - gci
- gochecknoglobals
# - gochecknoinits
- gocognit
- goconst
- gocritic
- gocyclo
- godot
# ... and so on as you can see I'm disabling some of them. The question: how can I keep this file updated with the new linters that are added in the new versions? Is there any way to know which linter has been added that isn't on this list? |
Beta Was this translation helpful? Give feedback.
Answered by
ldez
Apr 4, 2021
Replies: 1 comment 4 replies
-
Hello, you can find all the linters and the version when they have been introduced (column You can use the command |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
ldez
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
you can find all the linters and the version when they have been introduced (column
Since
) on this page: https://golangci-lint.run/usage/linters/You can use the command
golangci-lint linters
to see all the linters that are enabled or disabled for your configuration.