Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 6 additions & 30 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,18 @@ linters:
- errname
- fatcontext
- forcetypeassert
- gochecknoinits
- goconst
- godox
- gosec
- govet
- ineffassign
- interfacebloat
- musttag
- makezero
- modernize
- nilerr
- nilnil
- noctx
- nolintlint
- prealloc
- predeclared
- recvcheck
- revive
- sloglint
- staticcheck
Expand All @@ -43,19 +41,9 @@ linters:
goconst:
min-len: 3
min-occurrences: 3
godox:
keywords:
- TODO
- BUG
- FIXME
- OPTIMIZE
- HACK
interfacebloat:
max: 5
nolintlint:
require-explanation: false
require-explanation: true
require-specific: true
allow-unused: false
revive:
max-open-files: 2048
confidence: 0.8
Expand All @@ -78,20 +66,14 @@ linters:
severity: warning
disabled: false
usetesting:
os-mkdir-temp: true
os-setenv: true
os-temp-dir: true
os-create-temp: true
context-background: true
context-todo: true
exclusions:
generated: lax
rules:
- linters:
- goconst
path: (.+)_test\.go
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gci
Expand All @@ -105,9 +87,3 @@ formatters:
- default
- prefix(github.com/occamist/emailer)
custom-order: true
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
Loading