Files
keyfunc/.golangci.yml
T
sneak f00438f084
check / check (push) Failing after 1s
Use gomodguard_v2 in the linter config (closes #31)
Disable the deprecated gomodguard linter so golangci-lint uses its
gomodguard_v2 replacement, mirroring the existing wsl/wsl_v5 handling.
Removes the deprecation warning from the lint output; behaviour is
unchanged since default: all already enables gomodguard_v2.

Model: opus-4-8
2026-09-21 15:25:37 +00:00

36 lines
983 B
YAML

version: "2"
# Config schema uses the golangci-lint v2 layout (settings live under
# linters.settings, not top-level linters-settings) so that the
# thresholds below are actually applied by golangci-lint >= v2.
run:
timeout: 5m
modules-download-mode: readonly
linters:
default: all
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
- gomodguard # Deprecated, replaced by gomodguard_v2
- wrapcheck # Too verbose for internal packages
- varnamelen # Short names like db, id are idiomatic Go
settings:
lll:
line-length: 88
funlen:
lines: 80
statements: 50
cyclop:
max-complexity: 15
dupl:
threshold: 100
issues:
max-issues-per-linter: 0
max-same-issues: 0