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