From 095836f013994d7ab0eb7e4820211a5b0f322359 Mon Sep 17 00:00:00 2001 From: Florian Wagner Date: Thu, 16 Mar 2023 02:29:51 +0000 Subject: [PATCH] update linters Signed-off-by: Florian Wagner --- .golangci.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index 9efe0ab..39d9589 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -1,16 +1,13 @@ linters: disable-all: true enable: - - deadcode - gocyclo - - golint + - revive - gofmt - goimports - - varcheck - - structcheck + - unused - errcheck - ineffassign - - interfacer - unconvert - goconst - megacheck @@ -23,5 +20,10 @@ run: - ".*_test\\.go$" modules-download-mode: vendor issues: - exclude: - - ".*returns unexported type.*" \ No newline at end of file + exclude-rules: + - path: test/github.go + text: "var-declaration: should omit type string from declaration of var authenticatedLogin; it will be inferred from the right-hand side" + - path: test/github.go + text: "var-declaration: should drop = \"\" from declaration of var errString; it is the zero value" + - path: src/push.go + text: "error-strings: error strings should not be capitalized or end with punctuation or a newline" \ No newline at end of file