inital commit

This commit is contained in:
2024-12-12 15:55:37 +03:00
commit 13c18e116a
17 changed files with 858 additions and 0 deletions

64
.golangci.yml Normal file
View File

@@ -0,0 +1,64 @@
linters-settings:
govet:
check-shadowing: true
gocyclo:
min-complexity: 20
maligned:
suggest-new: true
dupl:
threshold: 200
goconst:
min-len: 2
min-occurrences: 2
misspell:
locale: US
lll:
line-length: 140
goimports:
local-prefixes: github.com/golangci/golangci-lint
gocritic:
enabled-tags:
- performance
- style
- experimental
disabled-checks:
- wrapperFunc
linters:
disable-all: true
enable:
- govet
- gocyclo
- dupl
- lll
- gosec
- dupl
- goconst
# - depguard
- misspell
- goimports
# - gocritic
- staticcheck
- deadcode
- errcheck
- unused
- gosimple
- structcheck
- varcheck
- ineffassign
- typecheck
- bodyclose
- unconvert
- unparam
- prealloc
- whitespace
- exportloopref
run:
tests: false
go: "1.21"
skip-dirs:
- swagger-ui
- configs
- templates
- \.go