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