chore: update golangci config to v2 schema

This commit is contained in:
2025-12-27 08:37:08 +01:00
parent de1e3f2190
commit 726cf6ca68

View File

@@ -26,11 +26,9 @@ linters:
- misspell
- copyloopvar
- nilerr
linters-settings:
settings:
revive:
confidence: 0.8
ignore-generated-header: true
severity: warning
rules:
- name: indent-error-flow
@@ -60,37 +58,35 @@ linters-settings:
errcheck:
check-type-assertions: true
ignore: |
fmt:.*
staticcheck:
checks: ["all"]
ignore:
- SA1019
checks: ["all", "-SA1019"]
goconst:
min-len: 3
min-occurrences: 2
issues:
exclude-dirs:
exclusions:
paths:
- vendor
- tmp
- dist
exclude-rules:
rules:
- path: ".*_test\\.go"
linters:
- gosec
- path: "mock/|mocks/"
linters:
- gosec
- revive
- errcheck
issues:
max-issues-per-linter: 0
max-same-issues: 0
output:
format: colored-line-number
formats:
text:
path: stdout
colors: true