45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
# golangci-lint configuration for Pekoe
|
|
version: "2"
|
|
|
|
linters-settings:
|
|
errcheck:
|
|
check-type-assertions: true
|
|
check-blank: true
|
|
|
|
gosec:
|
|
excludes:
|
|
- G304 # os.ReadFile for config loading is intentional
|
|
|
|
staticcheck:
|
|
checks:
|
|
- all
|
|
- -SA1019 # ne.Temporary() is deprecated but needed for network error handling
|
|
|
|
cyclop:
|
|
max-complexity: 10
|
|
skip-functions:
|
|
- TestSetDefaults # Test has many test cases - complexity is inherent
|
|
- TestLoad # Test has many assertions - complexity is inherent
|
|
- ToBytes # Type switch needs all RESP value types
|
|
- ReadCommand # RESP protocol parsing requires branches
|
|
- handleConn # Connection lifecycle handling
|
|
- processCommand # Command routing with many cases
|
|
- handlePubsub # PUBSUB subcommand handling
|
|
|
|
gocritic:
|
|
disabled-checks:
|
|
- elseif
|
|
|
|
linters:
|
|
enable:
|
|
- errcheck
|
|
- gosec
|
|
- gocritic
|
|
- staticcheck
|
|
- cyclop
|
|
|
|
issues:
|
|
exclude-use-default: false
|
|
|
|
run:
|
|
tests: true |