add basic linting rules

This commit is contained in:
Damian
2023-11-10 17:03:30 +00:00
committed by GitHub
parent 8d1554e10e
commit f87e35b5f8
2 changed files with 32 additions and 0 deletions

24
.golangci-lint.yaml Normal file
View 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