add workflow
All checks were successful
Go Action / goaction (push) Successful in 1m3s
Go Action / goaction (pull_request) Successful in 41s

This commit is contained in:
andrey
2025-12-24 00:12:33 +03:00
parent 779818e067
commit 05ed4eb281
5 changed files with 75 additions and 30 deletions

View File

@@ -1,4 +1,14 @@
linters-settings:
version: "2"
linters:
default: all
disable:
- wsl
- recvcheck
- gochecknoglobals
- ireturn
- mnd
- nolintlint
settings:
dupl:
threshold: 100
funlen:
@@ -9,14 +19,10 @@ linters-settings:
min-occurrences: 2
gocyclo:
min-complexity: 15
golint:
min-confidence: 0
lll:
line-length: 140
maligned:
suggest-new: true
misspell:
locale: US
locale: US
varnamelen:
min-name-length: 2
ignore-decls:
@@ -26,25 +32,33 @@ linters-settings:
- i int
- b bytes.Buffer
- h Handle
linters:
enable-all: true
disable:
- gochecknoglobals
- ireturn
- mnd
- nolintlint
# deprecated
- gomnd
- exportloopref
- execinquery
issues:
# Excluding configuration per-path, per-linter, per-text and per-source
exclude-rules:
- path: _test\.go
linters:
- gochecknoglobals
- depguard
- gosec
- errchkjson
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- depguard
- errchkjson
- gochecknoglobals
- gosec
path: _test\.go
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gci
- gofmt
- gofumpt
- goimports
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$