Files
bytesize/.golangci.yml
andrey 05ed4eb281
All checks were successful
Go Action / goaction (push) Successful in 1m3s
Go Action / goaction (pull_request) Successful in 41s
add workflow
2025-12-24 00:12:33 +03:00

65 lines
1.1 KiB
YAML

version: "2"
linters:
default: all
disable:
- wsl
- recvcheck
- gochecknoglobals
- ireturn
- mnd
- nolintlint
settings:
dupl:
threshold: 100
funlen:
lines: 100
statements: 60
goconst:
min-len: 2
min-occurrences: 2
gocyclo:
min-complexity: 15
lll:
line-length: 140
misspell:
locale: US
varnamelen:
min-name-length: 2
ignore-decls:
- w io.Writer
- t testing.T
- e error
- i int
- b bytes.Buffer
- h Handle
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$