Skip to content

Commit

Permalink
chore: add a better golangci-lint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Feb 26, 2024
1 parent cf96618 commit 08f5742
Showing 1 changed file with 59 additions and 23 deletions.
82 changes: 59 additions & 23 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,71 @@ linters-settings:
locale: "US"

linters:
enable-all: true
disable:
- stylecheck
- gosec
- dupl
- maligned
- depguard
- lll
- prealloc
- scopelint
- gocritic
- gochecknoinits
- gochecknoglobals
- godox
- funlen
- wsl
- whitespace
- gomnd
- typecheck
- godot
- errname
- nlreturn
- wrapcheck
disable-all: false
enable:
- asasalint
- asciicheck
- bidichk
- bodyclose
- containedctx
- decorder
- dogsled
- dupword
- durationcheck
- errcheck
- errchkjson
- errorlint
- exportloopref
- forcetypeassert
- ginkgolinter
- gocheckcompilerdirectives
- gocognit
- goconst
- gocyclo
- gofmt
- gofumpt
- goheader
- goimports
- gomoddirectives
- gomodguard
- goprintffuncname
- gosimple
- govet
- importas
- inamedparam
- ineffassign
- ireturn
- loggercheck
- makezero
- mirror
- misspell
- nakedret
- nolintlint
- nonamedreturns
- nosprintfhostport
- perfsprint
- predeclared
- reassign
- revive
- staticcheck
- tagalign
- tenv
- testableexamples
- testifylint
- thelper
- unconvert
- unparam
- unused
- usestdlibvars
- wastedassign

issues:
exclude-use-default: true
max-issues-per-linter: 0
max-same-issues: 0
# The following excludes are considered false-positives/known-OK.
exclude:
- fmt.Sprintf can be replaced with string
exclude-rules:
- path: ca([/|\\])ca.go
text: 'type name will be used as ca.CAImpl by other packages, and that stutters; consider calling this Impl'
Expand Down

0 comments on commit 08f5742

Please sign in to comment.