Skip to content

Commit

Permalink
golangci-lint: disable even the default linters
Browse files Browse the repository at this point in the history
This makes it possible to have one enabled list of linters. Linters that
are in the enabled list but commented as the ones that are disabled and
we need to enable them after fixing the issues.

Signed-off-by: Raghavendra Talur <[email protected]>
  • Loading branch information
raghavendra-talur committed Nov 21, 2023
1 parent e8d3242 commit 6af7a06
Showing 1 changed file with 27 additions and 28 deletions.
55 changes: 27 additions & 28 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ linters-settings:
# - name: bool-literal-in-expr

linters:
disable-all: true
enable:
- asasalint
- asciicheck
Expand Down Expand Up @@ -153,31 +154,29 @@ linters:
- wastedassign
- whitespace
- wsl
disable:
- exhaustivestruct
- gochecknoglobals
- gochecknoinits
- godot
- godox
- paralleltest
- goerr113 # TODO: Need to introduce error definition and bring this back
- goheader # TODO: Introduce back post fixing linter errors
- gci
- interfacer # interfacer linter is archived and deprecated (https://github.com/mvdan/interfacer)
# TODO: fix folloing linter errors.
- exhaustruct
- tagliatelle
- gomoddirectives
- goimports
- wrapcheck
- varnamelen
- staticcheck
- nosnakecase
- ireturn
- nilnil
- containedctx
- nonamedreturns
- forcetypeassert
- promlinter
- contextcheck
- errname
# - exhaustivestruct
# - gochecknoglobals
# - gochecknoinits
# - godot
# - godox
# - paralleltest
# - goerr113 # TODO: Need to introduce error definition and bring this back
# - goheader # TODO: Introduce back post fixing linter errors
# - gci
# - interfacer # interfacer linter is archived and deprecated (https://github.com/mvdan/interfacer)
# - exhaustruct
# - tagliatelle
# - gomoddirectives
# - goimports
# - wrapcheck
# - varnamelen
# - staticcheck
# - nosnakecase
# - ireturn
# - nilnil
# - containedctx
# - nonamedreturns
# - forcetypeassert
# - promlinter
# - contextcheck
# - errname

0 comments on commit 6af7a06

Please sign in to comment.