ci: Added golangci linter

This commit is contained in:
2025-10-28 19:25:53 +03:00
parent 334c0c1480
commit e7592e8737
2 changed files with 53 additions and 0 deletions

27
.golangci.yml Normal file
View File

@@ -0,0 +1,27 @@
version: "2"
run:
relative-path-mode: gomod
timeout: 5m
linters:
settings:
dupl:
threshold: 100
enable:
- errcheck
- govet
- ineffassign
- staticcheck
- unused
- errname
- dupl
- decorder
- cyclop
- funlen
- lll
- nestif
- nlreturn
- prealloc
- tagalign
- whitespace