Skip to content

Commit

Permalink
Merge pull request #1631 from vrothberg/linter
Browse files Browse the repository at this point in the history
golangci.yml: enable all, disable failing linters
  • Loading branch information
openshift-merge-robot authored Aug 31, 2023
2 parents 1240538 + b6cd136 commit 71b9e48
Showing 1 changed file with 71 additions and 9 deletions.
80 changes: 71 additions & 9 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,77 @@ run:
concurrency: 6
deadline: 5m
linters:
enable:
- dupl
- gocritic
- unparam
- exportloopref
- revive
- prealloc
- makezero
- gofumpt
enable-all: true
disable:
# linters deprecated by upstreams ...
- interfacer
- varcheck
- deadcode
- scopelint
- maligned
- nosnakecase
- exhaustivestruct
- structcheck
- ifshort
- golint
# others to be re-enabled one-by-one ...
- forbidigo
- funlen
- gci
- gochecknoinits
- gocognit
- goconst
- godox
- golint
- lll
- maligned
- mirror
- misspell
- nestif
- unconvert
- whitespace
- wsl
- contextcheck
- cyclop
- depguard
- dupword
- errchkjson
- errname
- errorlint
- exhaustive
- exhaustivestruct
- ginkgolinter
- gochecknoglobals
- goerr113
- gomnd
- nolintlint
- wrapcheck
- wastedassign
- varnamelen
- testpackage
- tenv
- tagliatelle
- stylecheck
- paralleltest
- nonamedreturns
- nlreturn
- nakedret
- musttag
- maintidx
- ireturn
- exhaustruct
- gosec
- godot
- gocyclo
- dogsled
- tparallel
- thelper
- nilnil
- nilerr
- interfacebloat
- forcetypeassert
- gomoddirectives
- predeclared
linters-settings:
errcheck:
check-type-assertions: true
Expand Down

0 comments on commit 71b9e48

Please sign in to comment.