You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.1 KiB
YAML

version: "2"
run:
go: "1.25"
tests: true
linters:
enable:
- bodyclose
- dupl
- exhaustive
- goconst
- gocyclo
- gosec
- lll
- misspell
- noctx
- prealloc
- unconvert
settings:
dupl:
threshold: 150
goconst:
min-len: 3
min-occurrences: 3
gocyclo:
min-complexity: 15
gosec:
excludes:
- G104 # Unhandled errors (we use errcheck)
lll:
line-length: 120
misspell:
locale: US
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- dupl
- errcheck
- gocyclo
- gosec
path: _test\.go
- linters:
- gocyclo
path: cmd/main\.go
paths:
- third_party$
- builtin$
- examples$
issues:
max-issues-per-linter: 50
max-same-issues: 10
formatters:
enable:
- gofmt
- goimports
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$