Skip to content

Commit

Permalink
update linters
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Wagner <h2floh@github.com>
  • Loading branch information
Florian Wagner committed Mar 16, 2023
1 parent d40dda8 commit 095836f
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
linters:
disable-all: true
enable:
- deadcode
- gocyclo
- golint
- revive
- gofmt
- goimports
- varcheck
- structcheck
- unused
- errcheck
- ineffassign
- interfacer
- unconvert
- goconst
- megacheck
Expand All @@ -23,5 +20,10 @@ run:
- ".*_test\\.go$"
modules-download-mode: vendor
issues:
exclude:
- ".*returns unexported type.*"
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"

0 comments on commit 095836f

Please sign in to comment.