chore(ci): fix golangci-lint configuration

This commit is contained in:
Julien Dessaux 2025-03-24 22:11:02 +01:00
parent 990188797c
commit 2ae64900a5
Signed by: adyxax
GPG key ID: F92E51B86E07177E

View file

@ -1,19 +1,12 @@
# Visit https://golangci-lint.run/ for usage documentation version: "2"
# and information on other useful linters
issues:
max-issues-per-linter: 0
max-same-issues: 0
linters: linters:
disable-all: true default: none
enable: enable:
- copyloopvar - copyloopvar
- durationcheck - durationcheck
- errcheck - errcheck
- forcetypeassert - forcetypeassert
- godot - godot
- gofmt
- gosimple
- govet - govet
- ineffassign - ineffassign
- makezero - makezero
@ -24,3 +17,26 @@ linters:
- unconvert - unconvert
- unparam - unparam
- unused - unused
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
issues:
max-issues-per-linter: 0
max-same-issues: 0
formatters:
enable:
- gofmt
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$