From 46f04e00fa0104f8fba59811319c33137ca0e02b Mon Sep 17 00:00:00 2001 From: Dominic Evans Date: Thu, 13 May 2021 10:19:14 +0100 Subject: [PATCH] chore: add golangci config --- .golangci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .golangci.yml diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..be78900 --- /dev/null +++ b/.golangci.yml @@ -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