mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
* migrate golangci-lint config to v2 format * chore: skip CI on migration [skip ci] * Bump golangci version * Address several golangci-lint/staticcheck warnings * change staticchecks settings
35 lines
695 B
YAML
35 lines
695 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:
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|