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 4c49dfa
Showing 1 changed file with 68 additions and 14 deletions.
82 changes: 68 additions & 14 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,74 @@ 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
# - bodyclose
# - errcheck
# - gochecknoinits
# - gocritic
# - gofumpt
# - gosimple
# - govet
# - ineffassign
# - nolintlint
# - staticcheck
# - unused

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

0 comments on commit 4c49dfa

Please sign in to comment.