Add golangci-lint config

This commit is contained in:
2026-02-12 02:54:35 +03:00
parent f22111aa43
commit 9e59fa18e4
14 changed files with 112 additions and 50 deletions

44
.golangci.yml Normal file
View File

@@ -0,0 +1,44 @@
version: "2"
run:
tests: false
linters:
default: all
disable:
- revive
- noinlineerr
- mnd
- tagliatelle
- ireturn
- godox
- exhaustruct
- depguard
settings:
wsl_v5:
allow-first-in-block: true
allow-whole-block: false
branch-max-lines: 2
lll:
line-length: 120
staticcheck:
checks:
- -SA1029
varnamelen:
ignore-decls:
- tx *sqlx.Tx
wrapcheck:
ignore-sig-regexps:
- \.Write\(
- \.WriteString\(
- \.WriteJSON\(
- \.WriteHTML\(
- \.Redirect\(
- \.Error\(
- \.ErrorV0\(
issues:
max-issues-per-linter: 0
max-same-issues: 0
formatters:
enable:
- gofmt
- gofumpt
- goimports