update lint and dependency (#2)
All checks were successful
Go Action / goaction (push) Successful in 33s

Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
2025-12-23 23:25:07 +03:00
parent 2df0314393
commit 3bb09b70d7
15 changed files with 119 additions and 67 deletions

View File

@@ -1,4 +1,12 @@
linters-settings:
version: "2"
linters:
default: all
disable:
- wrapcheck
- wsl
- depguard
- revive
settings:
dupl:
threshold: 100
funlen:
@@ -9,32 +17,39 @@ linters-settings:
min-occurrences: 2
gocyclo:
min-complexity: 15
golint:
min-confidence: 0
govet:
check-shadowing: true
lll:
line-length: 140
maligned:
suggest-new: true
misspell:
locale: US
linters:
enable-all: true
disable:
- scopelint
- maligned
- interfacer
- wrapcheck
issues:
# Excluding configuration per-path, per-linter, per-text and per-source
exclude-rules:
- path: _test\.go
linters:
- gomnd
- path: _suite\.go
linters:
- exhaustivestruct
- gomnd
locale: US
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- mnd
path: _test\.go
- linters:
- exhaustivestruct
- mnd
path: _suite\.go
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gci
- gofmt
- gofumpt
- goimports
- golines
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$