chore: add golangci-lint

This commit is contained in:
2025-01-14 15:45:29 +03:00
parent 5b7af1f6b5
commit 3f428ab7b5
2 changed files with 34 additions and 0 deletions

30
.golangci.yml Normal file
View File

@ -0,0 +1,30 @@
run:
timeout: 5m
linters-settings:
goimports:
local-prefixes: "plemya-x.ru/alr"
gofmt:
simplify: true
gofumpt:
extra-rules: true
linters:
enable:
- gofmt
- gofumpt
- goimports
- gocritic
- govet
- staticcheck
- unused
- errcheck
- typecheck
# - forbidigo
issues:
fix: true
exclude-rules:
- path: _test\.go
linters:
- errcheck