Настроил тулинг

This commit is contained in:
2026-06-14 11:35:14 +03:00
parent e5dabebbd6
commit b1a4a846d6
5 changed files with 101 additions and 47 deletions
+23 -9
View File
@@ -1,13 +1,27 @@
# Минимальный конфиг golangci-lint (формат v1).
# При golangci-lint v2 может потребоваться адаптация схемы.
run:
timeout: 5m
# Конфиг golangci-lint (схема v2; устанавливается через `task setup`).
# Базовый набор v2 (`default: standard`) — errcheck, govet, ineffassign,
# staticcheck, unused; дополнительно включаем misspell.
version: "2"
linters:
enable:
- errcheck
- govet
- ineffassign
- staticcheck
- unused
- misspell
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
formatters:
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$