Skip to content

Commit

Permalink
golangci-lint: remove the deprecated linters
Browse files Browse the repository at this point in the history
Also move the move the disabled linters to the enabled list as comments.
We will enable them as and when we fix the issues.

Signed-off-by: Raghavendra Talur <[email protected]>
  • Loading branch information
raghavendra-talur committed Nov 14, 2023
1 parent 719fd43 commit 3d49e30
Showing 1 changed file with 25 additions and 34 deletions.
59 changes: 25 additions & 34 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ linters:
- bidichk
- bodyclose
- cyclop
- deadcode
- decorder
- depguard
- dogsled
Expand All @@ -61,23 +60,20 @@ linters:
- gocyclo
- gofmt
- gofumpt
- golint
- gomnd
- gomodguard
- goprintffuncname
- gosec
- gosimple
- govet
- grouper
- ifshort
- importas
- ineffassign
- interfacebloat
- lll
- logrlint
- maintidx
- makezero
- maligned
- misspell
- nakedret
- nestif
Expand All @@ -91,9 +87,7 @@ linters:
- reassign
- revive
- rowserrcheck
- scopelint
- sqlclosecheck
- structcheck
- stylecheck
- tenv
- testpackage
Expand All @@ -104,35 +98,32 @@ linters:
- unparam
- unused
- usestdlibvars
- varcheck
- wastedassign
- whitespace
- wsl
# - containedctx
# - contextcheck
# - errname
# - exhaustivestruct
# - exhaustruct
# - forcetypeassert
# - gci
# - gochecknoglobals
# - gochecknoinits
# - godot
# - godox
# - goerr113
# - goheader
# - goimports
# - gomoddirectives
# - interfacer
# - ireturn
# - nilnil
# - nonamedreturns
# - paralleltest
# - promlinter
# - tagliatelle
# - varnamelen
# - wrapcheck
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
- staticcheck # Enabled by default, needs explicit disabling. Enable after fixing the issues.

Check warning on line 129 in .golangci.yaml

View workflow job for this annotation

GitHub Actions / Linters

129:19 [comments] too few spaces before comment

0 comments on commit 3d49e30

Please sign in to comment.