Skip to content
Merged
Show file tree
Hide file tree
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
41 changes: 41 additions & 0 deletions .golangci.bck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
run:
concurrency: 4
timeout: 10m

linters:
enable:
- cyclop
- dupl
- durationcheck
- errorlint
- exhaustive
- copyloopvar
- forcetypeassert
- gocognit
- goconst
- gocritic
- gocyclo
- gofmt
- mnd
- gosec
- makezero
- nakedret
- nestif
- nilerr
- noctx
# - prealloc
- unconvert
- unparam
- wastedassign
- wrapcheck
- gci


issues:
exclude-rules:
- path: (.*)test(.*).go
linters:
- funlen
- goconst
- wrapcheck
- dupl
46 changes: 30 additions & 16 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,41 +1,55 @@
version: "2"
run:
concurrency: 4
timeout: 10m

linters:
enable:
- copyloopvar
- cyclop
- dupl
- durationcheck
- errorlint
- exhaustive
- copyloopvar
- forcetypeassert
- gocognit
- goconst
- gocritic
- gocyclo
- gofmt
- mnd
- gosec
- makezero
- mnd
- nakedret
- nestif
- nilerr
- noctx
# - prealloc
- unconvert
- unparam
- wastedassign
- wrapcheck
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- dupl
- funlen
- goconst
- wrapcheck
path: (.*)test(.*).go
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gci


issues:
exclude-rules:
- path: (.*)test(.*).go
linters:
- funlen
- goconst
- wrapcheck
- dupl
- gofmt
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
Loading