2020-07-02 19:36:10 +01:00
|
|
|
linters:
|
|
|
|
|
disable-all: true
|
|
|
|
|
enable:
|
|
|
|
|
- gocyclo
|
2023-03-16 02:29:51 +00:00
|
|
|
- revive
|
2020-07-02 19:36:10 +01:00
|
|
|
- gofmt
|
|
|
|
|
- goimports
|
2023-03-16 02:29:51 +00:00
|
|
|
- unused
|
2020-07-02 19:36:10 +01:00
|
|
|
- errcheck
|
|
|
|
|
- ineffassign
|
|
|
|
|
- unconvert
|
|
|
|
|
- goconst
|
|
|
|
|
- megacheck
|
|
|
|
|
- goimports
|
|
|
|
|
- govet
|
|
|
|
|
- unparam
|
|
|
|
|
run:
|
|
|
|
|
tests: true
|
|
|
|
|
skip-files:
|
|
|
|
|
- ".*_test\\.go$"
|
|
|
|
|
modules-download-mode: vendor
|
|
|
|
|
issues:
|
2023-03-16 02:29:51 +00:00
|
|
|
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"
|