oprimized, working
This commit is contained in:
parent
2b39afca3b
commit
0350ecba9a
38 changed files with 1809 additions and 826 deletions
52
.golangci.yml
Normal file
52
.golangci.yml
Normal file
|
@ -0,0 +1,52 @@
|
|||
linters:
|
||||
enable:
|
||||
- revive
|
||||
- exhaustruct
|
||||
- nakedret
|
||||
- gomoddirectives
|
||||
- importas
|
||||
- misspell
|
||||
- promlinter
|
||||
- prealloc
|
||||
- predeclared
|
||||
- stylecheck
|
||||
- ineffassign
|
||||
- dupl
|
||||
- govet
|
||||
- staticcheck
|
||||
- unused
|
||||
- asasalint
|
||||
- asciicheck
|
||||
- bidichk
|
||||
- bodyclose
|
||||
# - containedctx
|
||||
- durationcheck
|
||||
- errcheck
|
||||
- nakedret
|
||||
- testifylint
|
||||
|
||||
linters-settings:
|
||||
revive:
|
||||
ignore-generated-header: true
|
||||
severity: warning
|
||||
rules:
|
||||
- name: blank-imports
|
||||
disabled: true
|
||||
staticcheck:
|
||||
checks:
|
||||
- "-SA4006"
|
||||
gosimple:
|
||||
checks:
|
||||
- "-S1002"
|
||||
exhaustruct:
|
||||
include:
|
||||
- ".*Service"
|
||||
- ".*Server.*"
|
||||
exclude:
|
||||
- ".*mutex"
|
||||
- ".*mutex"
|
||||
stylecheck:
|
||||
checks:
|
||||
- "-ST1003"
|
||||
dupl:
|
||||
threshold: 180
|
Loading…
Add table
Add a link
Reference in a new issue