Linting, CI, some small logic fixes.

This commit is contained in:
2020-11-21 21:25:16 +05:00
parent 94234816c5
commit 3d8d3e478c
11 changed files with 252 additions and 91 deletions

20
.golangci.yml Normal file
View File

@@ -0,0 +1,20 @@
run:
deadline: 5m
linters:
enable-all: true
disable:
- dupl
- gochecknoglobals
- exhaustive
- testpackage
linters-settings:
lll:
line-length: 120
gocyclo:
min-complexity: 80
gocognit:
min-complexity: 100
funlen:
lines: 200
statements: 100