Skip to content

Commit

Permalink
chore: add golangci-lint config file for flexibility
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear committed Nov 9, 2023
1 parent 8327b60 commit e94085a
Showing 1 changed file with 57 additions and 14 deletions.
71 changes: 57 additions & 14 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,63 @@ run:
timeout: 5m

linters:
# Disable all linters to prevent appearing new issues on golangci-lint update.
disable-all: true
enable:
- bodyclose
- errcheck
- gochecknoinits
- gocritic
- gofumpt
- gosimple
- govet
- ineffassign
- nolintlint
- staticcheck
- unused
enable-all: true
disable:
- cyclop
- depguard
- dupl
- dupword
- errname
- errorlint
- exhaustive
- exhaustruct
- forcetypeassert
- funlen
- gochecknoglobals
- gocognit
- goconst
- gocyclo
- godot
- goerr113
- gomnd
- gosec
- inamedparam
- ireturn
- lll
- maintidx
- nakedret
- nestif
- nlreturn
- noctx
- nonamedreturns
- paralleltest
- perfsprint
- revive
- stylecheck
- testableexamples
- testpackage
- thelper
- tparallel
- unconvert
- unparam
- usestdlibvars
- varnamelen
- wastedassign
- whitespace
- wrapcheck
- wsl

# Deprecated linters
- deadcode
- exhaustivestruct
- golint
- ifshort
- interfacer
- maligned
- nosnakecase
- scopelint
- structcheck
- varcheck

linters-settings:
# Show all issues from a linter.
Expand Down

0 comments on commit e94085a

Please sign in to comment.