inital commit
This commit is contained in:
64
.golangci.yml
Normal file
64
.golangci.yml
Normal 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
|
||||
Reference in New Issue
Block a user