This commit is contained in:
2026-09-20 22:56:40 -07:00
parent a8ab26752a
commit cf9dc39053
2 changed files with 35 additions and 1 deletions
+34
View File
@@ -0,0 +1,34 @@
version: "2"
run:
timeout: 5m
modules-download-mode: readonly
linters:
default: all
enable:
- gomodguard_v2
disable:
# Genuinely incompatible with project patterns
- exhaustruct # Requires all struct fields
- depguard # Dependency allow/block lists
- godot # Requires comments to end with periods
- wsl # Deprecated, replaced by wsl_v5
- wrapcheck # Too verbose for internal packages
- varnamelen # Short names like db, id are idiomatic Go
linters-settings:
lll:
line-length: 88
funlen:
lines: 80
statements: 50
cyclop:
max-complexity: 15
dupl:
threshold: 100
issues:
exclude-use-default: false
max-issues-per-linter: 0
max-same-issues: 0
+1 -1
View File
@@ -13,7 +13,7 @@ test: lint
# Run linter
lint:
golangci-lint run
golangci-lint run --config .golangci.yml ./...
# Format code
fmt: