@@ -1,16 +1,13 @@
|
|||||||
linters:
|
linters:
|
||||||
disable-all: true
|
disable-all: true
|
||||||
enable:
|
enable:
|
||||||
- deadcode
|
|
||||||
- gocyclo
|
- gocyclo
|
||||||
- golint
|
- revive
|
||||||
- gofmt
|
- gofmt
|
||||||
- goimports
|
- goimports
|
||||||
- varcheck
|
- unused
|
||||||
- structcheck
|
|
||||||
- errcheck
|
- errcheck
|
||||||
- ineffassign
|
- ineffassign
|
||||||
- interfacer
|
|
||||||
- unconvert
|
- unconvert
|
||||||
- goconst
|
- goconst
|
||||||
- megacheck
|
- megacheck
|
||||||
@@ -23,5 +20,10 @@ run:
|
|||||||
- ".*_test\\.go$"
|
- ".*_test\\.go$"
|
||||||
modules-download-mode: vendor
|
modules-download-mode: vendor
|
||||||
issues:
|
issues:
|
||||||
exclude:
|
exclude-rules:
|
||||||
- ".*returns unexported type.*"
|
- 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"
|
||||||
Reference in New Issue
Block a user