hub/.golangci.yml

53 lines
858 B
YAML

version: "2"
linters:
default: none
enable:
- asciicheck
- bodyclose
- copyloopvar
- errcheck
- errorlint
- goconst
- gocritic
- gosec
- govet
- ineffassign
- misspell
- nakedret
- prealloc
- revive
- staticcheck
- unconvert
- unparam
- unused
settings:
goconst:
min-occurrences: 5
gocritic:
disabled-checks:
- singleCaseSwitch
revive:
rules:
- name: unused-parameter
disabled: true
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- goimports
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$