chore: add .golangci.yaml

This commit is contained in:
2025-08-15 17:40:22 +03:00
committed by GitHub
parent 4b99d3cf00
commit a5d1c7eb9a

33
.golangci.yaml Normal file
View File

@@ -0,0 +1,33 @@
run:
timeout: 3m
go: "1.24"
linters:
enable:
- govet
- staticcheck
- gofmt
- goimports
- gosimple
- ineffassign
- revive
- misspell
- errcheck
issues:
exclude-use-default: false
max-same-issues: 0
max-issues-per-linter: 0
settings:
revive:
severity: warning
rules:
- name: indent-error-flow
- name: errorf
- name: var-declaration
- name: ban-unused-imports
gofmt:
simplify: true
misspell:
locale: US