add linter and make file (#2)

This commit is contained in:
Bastian Doetsch
2022-03-07 20:03:32 +01:00
committed by GitHub
parent 18f5d74402
commit 5f3f234fff
5 changed files with 99 additions and 5 deletions

26
.golangci.yaml Normal file
View File

@@ -0,0 +1,26 @@
linters:
disable-all: true
enable:
- deadcode
- errcheck
- gofmt
- goimports
- gosimple
- ineffassign
- misspell
- staticcheck
- structcheck
- unconvert
- unused
- varcheck
- govet
linters-settings:
goimports:
local-prefixes: github.com/bastiandoetsch/mullvad-best-server
output:
format: tab
run:
deadline: 10m