From f00d9eb820b8d4ffb60d557e66e14db784a7c201 Mon Sep 17 00:00:00 2001 From: Matt Moore Date: Sun, 21 Jan 2024 07:35:15 -0800 Subject: [PATCH] Add linting rules Signed-off-by: Matt Moore --- .golangci.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .golangci.yml diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..d4f9735 --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,38 @@ +--- +linters: + enable: + - asciicheck + - unused + - errcheck + - errorlint + - gofmt + - goimports + - gosec + - gocritic + - importas + - prealloc + - revive + - misspell + - stylecheck + - tparallel + - unconvert + - unparam + - whitespace +output: + uniq-by-line: false +issues: + exclude-rules: + - path: _test\.go + linters: + - errcheck + - gosec + max-issues-per-linter: 0 + max-same-issues: 0 +linters-settings: + revive: + rules: + - name: dot-imports + disabled: true +run: + issues-exit-code: 1 + timeout: 10m