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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
go-version: stable

- name: golangci-lint
uses: golangci/golangci-lint-action@v6
uses: golangci/golangci-lint-action@v7
with:
version: latest

Expand Down
132 changes: 71 additions & 61 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,75 +1,85 @@
version: "2"
run:
tests: false

linters-settings:
errcheck:
check-type-assertions: true
check-blank: true

govet:
enable:
- atomicalign
- shadow
enable-all: false
disable-all: false
gocyclo:
min-complexity: 30
gocognit:
min-complexity: 30
dupl:
threshold: 100

linters:
enable-all: true
default: all
disable:
# deprecated linters
- exportloopref
####################

# conflicted with go fmt
- nolintlint

# workaround to avoid linter failures of getting malformed json
- musttag

- err113

- bodyclose
- contextcheck
- nilerr
- noctx
- rowserrcheck
- sqlclosecheck
- tparallel
- cyclop
- depguard
- dupl
- durationcheck
- err113
- errcheck
- errname
- errorlint
- exhaustive
- exhaustruct
- forcetypeassert
- gochecknoglobals
- gochecknoinits
- gocyclo
- unparam
- nakedret
- lll
- dupl
- godot
- gosec
- gochecknoinits
- gochecknoglobals
- exhaustruct
- inamedparam
- lll
- musttag
- nakedret
- nilerr
- nlreturn
- noctx
- nolintlint
- nonamedreturns
- errcheck
- perfsprint
- recvcheck
- rowserrcheck
- sqlclosecheck
- staticcheck
- stylecheck
- wsl
- varnamelen
- tagalign
- tagliatelle
- nlreturn
- wrapcheck
- tparallel
- unparam
- varnamelen
- wastedassign
- durationcheck
- errorlint
- cyclop
- godot
- exhaustive
- depguard
- tagalign
- inamedparam
- perfsprint
- recvcheck
fast: false
- wrapcheck
- wsl
settings:
dupl:
threshold: 100
errcheck:
check-type-assertions: true
check-blank: true
gocognit:
min-complexity: 30
gocyclo:
min-complexity: 30
govet:
enable:
- atomicalign
- shadow
enable-all: false
disable-all: false
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gci
- gofmt
- gofumpt
- goimports
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$