migrate golangci-lint config

This commit is contained in:
Cody Lee 2025-04-04 08:32:42 -05:00
parent 0790aeda22
commit 5122360018
No known key found for this signature in database
1 changed files with 23 additions and 20 deletions

View File

@ -1,27 +1,30 @@
run:
timeout: 3m
version: "2"
linters:
enable:
- wsl
- nlreturn
- tagalign
- revive
- tagalign
- testpackage
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- unused
output:
sort-results: true
- wsl
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
issues:
# disable the default limit so we see everything
max-same-issues: 0
max-issues-per-linter: 0
# default enable fix where the linter supports
fix: true
max-same-issues: 0
fix: true
formatters:
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$