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