This commit is contained in:
bluepython508 committed 2026-10-22 12:27:19 +01:00
1 parent 3530afb854
commit 6903fcff27
2146 files changed
+112256 -190703

No files matched your search

+54 -25
View File
@@ -1,34 +1,63 @@
version: '2'
run:
timeout: 5m
linters:
enable:
- gofmt
- gofumpt
- goimports
- govet
- gosimple
- gocyclo
- gosmopolitan
- errcheck
- staticcheck
- intrange
- ineffassign
- unused
- typecheck
- unconvert
- unparam
- misspell
- decorder
- errorlint
- gocyclo
- govet
- gosec
- gosmopolitan
- intrange
- misspell
- predeclared
- reassign
- stylecheck
- staticcheck
- unconvert
- unparam
- usestdlibvars
- wastedassign
- nakedret
#
# - gosec
# - dupl
# - wrapcheck
- copyloopvar
- tparallel
- gochecknoglobals
- nolintlint
- modernize
- gocritic
settings:
govet:
enable:
- shadow
gocyclo:
min-complexity: 30
gosec:
excludes:
- G404 # deterministic RNG in tests/benchmarks only
exclusions:
generated: lax
rules:
- linters:
- gochecknoglobals
- gosec
- gocyclo
path: _test\.go
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
linters-settings:
gocyclo:
min-complexity: 30
formatters:
enable:
- gofmt
- goimports
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$