Skip to content
Merged
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
67 changes: 39 additions & 28 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
version: "2"
linters:
disable-all: true
default: none
enable:
- asasalint
- asciicheck
Expand All @@ -10,16 +11,11 @@ linters:
- errcheck
- errname
- errorlint
- execinquery
- exhaustive
- exportloopref
- gocheckcompilerdirectives
- gocritic
- godot
- gofumpt
- goimports
- gosec
- gosimple
- govet
- ineffassign
- loggercheck
Expand All @@ -34,32 +30,47 @@ linters:
- reassign
- revive
- staticcheck
- tenv
- tparallel
- typecheck
- unconvert
- unparam
- unused
- usestdlibvars
- wastedassign
- whitespace

linters-settings:
godot:
exclude:
- ^\s*.+:.+$
- ^\s*(?:=+|/+|-+|\++)
unparam:
check-exported: true

issues:
exclude-rules:
# prevent lexerr on type assertions with field access
- linters:
- errorlint
source: \w\.\(\*?\w+\)\.\w+
- path: (?:_test|test_util)\.go$
linters:
- errcheck
- errorlint
- gosec
settings:
godot:
exclude:
- ^\s*.+:.+$
- ^\s*(?:=+|/+|-+|\++)
unparam:
check-exported: true
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- errorlint
source: \w\.\(\*?\w+\)\.\w+
- linters:
- errcheck
- errorlint
- gosec
path: (?:_test|test_util)\.go$
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofumpt
- goimports
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$