mirror of
https://github.com/redis/go-redis.git
synced 2026-10-28 08:24:54 +08:00
* all: proper formatting * .golangci.yml: add linter for format check * ran `golangci-lint fmt` --------- Co-authored-by: Nedyalko Dyakov <nedyalko.dyakov@gmail.com>
37 lines
717 B
YAML
37 lines
717 B
YAML
version: "2"
|
|
run:
|
|
timeout: 5m
|
|
tests: false
|
|
linters:
|
|
settings:
|
|
staticcheck:
|
|
checks:
|
|
- all
|
|
# Incorrect or missing package comment.
|
|
# https://staticcheck.dev/docs/checks/#ST1000
|
|
- -ST1000
|
|
# Omit embedded fields from selector expression.
|
|
# https://staticcheck.dev/docs/checks/#QF1008
|
|
- -QF1008
|
|
- -ST1003
|
|
exclusions:
|
|
generated: lax
|
|
presets:
|
|
- comments
|
|
- common-false-positives
|
|
- legacy
|
|
- std-error-handling
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
formatters:
|
|
enable:
|
|
- gofmt
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|