sshportal/.golangci.yml

56 lines
819 B
YAML
Raw Normal View History

2018-11-16 22:44:29 +08:00
run:
deadline: 1m
tests: false
skip-files:
- "testing.go"
- ".*\\.pb\\.go"
- ".*\\.gen\\.go"
2018-11-16 22:44:29 +08:00
linters-settings:
golint:
min-confidence: 0
maligned:
suggest-new: true
goconst:
min-len: 5
min-occurrences: 4
misspell:
locale: US
linters:
disable-all: true
enable:
- bodyclose
2018-11-16 22:44:29 +08:00
- deadcode
- depguard
- dogsled
#- dupl
2018-11-16 22:44:29 +08:00
- errcheck
#- funlen
- gochecknoinits
#- gocognit
- goconst
- gocritic
#- gocyclo
2018-11-16 22:44:29 +08:00
- gofmt
- goimports
- golint
- gosimple
- govet
2018-11-16 22:44:29 +08:00
- ineffassign
- interfacer
#- maligned
- misspell
- nakedret
- prealloc
- scopelint
- staticcheck
- structcheck
#- stylecheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace