add basic linting rules
This commit is contained in:
24
.golangci-lint.yaml
Normal file
24
.golangci-lint.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
linters:
|
||||
enable:
|
||||
- errcheck
|
||||
- gosimple
|
||||
- govet
|
||||
- ineffassign
|
||||
- staticcheck
|
||||
- unused
|
||||
- cyclop
|
||||
- dupword
|
||||
- wsl
|
||||
- varnamelen
|
||||
- usestdlibvars
|
||||
- unparam
|
||||
- revive
|
||||
- prealloc
|
||||
- misspell
|
||||
- gocyclo
|
||||
- funlen
|
||||
- bodyclose
|
||||
|
||||
linters-settings:
|
||||
cyclop:
|
||||
max-complexity: 15
|
||||
Reference in New Issue
Block a user