From 6c57f77ac92a0a21889056f006be327ae7816439 Mon Sep 17 00:00:00 2001 From: Gapodo Date: Sat, 25 Nov 2023 20:59:05 +0100 Subject: [PATCH] add basic linter config --- .golangci.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .golangci.yaml diff --git a/.golangci.yaml b/.golangci.yaml new file mode 100644 index 0000000..4094a01 --- /dev/null +++ b/.golangci.yaml @@ -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'