Skip to content

Instantly share code, notes, and snippets.

@karsov
Created September 18, 2023 06:52
Show Gist options
  • Save karsov/075608388356d3917f037c24b9fe37fb to your computer and use it in GitHub Desktop.
Save karsov/075608388356d3917f037c24b9fe37fb to your computer and use it in GitHub Desktop.
linters-settings:
govet:
check-shadowing: true
settings:
printf:
funcs:
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
golint:
min-confidence: 0
linters:
disable-all: true
enable:
- bodyclose
- errcheck
- gofmt
- goimports
- gosec
- gosimple
- govet
- ineffassign
- misspell
- revive
- sqlclosecheck
- staticcheck
- stylecheck
- typecheck
- unparam
- unused
- whitespace
run:
go: 1.19
timeout: 3m
skip-dirs:
- testdata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment