Introduce golangci-lint

This commit is contained in:
Winni Neessen 2022-10-17 18:10:24 +02:00
parent da089fc348
commit 419469c297
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D
2 changed files with 8 additions and 1 deletions

2
.gitignore vendored
View file

@ -20,7 +20,7 @@
# Local testfiles and auth data
.auth
cmd/*
examples/*
# SonarQube
.scannerwork/

7
.golangci.toml Normal file
View file

@ -0,0 +1,7 @@
[run]
go = "1.16"
tests = true
[linters]
enable = ["stylecheck", "whitespace", "containedctx", "contextcheck", "decorder",
"errname", "errorlint", "gofmt", "gofumpt"]