chore: add golangci config

This commit is contained in:
Dominic Evans
2021-05-13 10:19:14 +01:00
parent cfb8bf7513
commit 46f04e00fa

23
.golangci.yml Normal file
View File

@@ -0,0 +1,23 @@
---
run:
timeout: 3m
linters:
enable:
- bodyclose
- exportloopref
- gofmt
- gosec
- govet
- misspell
- noctx
- staticcheck
- unconvert
- unparam
- whitespace
issues:
max-same-issues: 0
linters-settings:
goimports:
local-prefixes: github.com/jakekeeys/hg612-exporter
misspell:
locale: US