add basic linter config

main
gapodo 2023-11-25 20:59:05 +01:00
parent fc332b5119
commit 6c57f77ac9
1 changed files with 33 additions and 0 deletions

33
.golangci.yaml Normal file
View File

@ -0,0 +1,33 @@
linters-settings:
gofmt:
simplify: true
misspell:
locale: US
gofumpt:
lang-version: "1.20"
extra-rules: true
errorlint:
errorf-multi: true
linters:
disable-all: true
enable:
- bidichk
- errcheck
- gofmt
- goimports
- gosimple
- govet
- ineffassign
- misspell
- revive
- staticcheck
- typecheck
- unused
- whitespace
- gofumpt
- errorlint
run:
timeout: 5m
go: '1.20'