Initial commit

This commit is contained in:
eleksir
2026-04-02 23:56:28 +03:00
commit 9e30243533
34 changed files with 8413 additions and 0 deletions

45
.golangci.yml Normal file
View File

@@ -0,0 +1,45 @@
# 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