- Fix 10 err113 violations: extract dynamic errors to package-level sentinels - Fix 12 errcheck violations: handle unchecked error returns in player, metadata, and config packages - Fix 4 revive stutter warnings: rename player.PlayerState to player.State, player.PlayerVolume to player.Volume, queue.QueueTrack to queue.Track, queue.QueueState to queue.State - Fix 2 staticcheck SA4001: simplify *&x to x in assets handler - Fix 5 unused constants: remove dead AudioFileType iota block in models - Fix gci/gofumpt/wsl formatting issues across multiple files - Add gofumpt module-path setting to .golangci.yml for correct import grouping - Fix player test: gate integration test behind YELLOWJACKET_INTEGRATION env var instead of only skipping in CI, and replace t.Errorf+t.Failed with t.Fatalf - Remove continue-on-error from golangci-lint CI step so linting is now required
47 lines
707 B
YAML
47 lines
707 B
YAML
version: "2"
|
|
linters:
|
|
default: standard
|
|
enable:
|
|
- canonicalheader
|
|
- copyloopvar
|
|
- dupword
|
|
- err113
|
|
- errorlint
|
|
- exptostd
|
|
- gocritic
|
|
- godot
|
|
- goheader
|
|
- iface
|
|
- importas
|
|
- intrange
|
|
- mirror
|
|
- misspell
|
|
- nakedret
|
|
- nlreturn
|
|
- nolintlint
|
|
- perfsprint
|
|
- protogetter
|
|
- revive
|
|
- sloglint
|
|
- tagalign
|
|
- testifylint
|
|
- usestdlibvars
|
|
- usetesting
|
|
- whitespace
|
|
- wsl
|
|
formatters:
|
|
enable:
|
|
- gci
|
|
- gofmt
|
|
- gofumpt
|
|
- goimports
|
|
- golines
|
|
settings:
|
|
gci:
|
|
sections:
|
|
- standard
|
|
- default
|
|
- prefix(yellowjacket)
|
|
gofumpt:
|
|
module-path: yellowjacket
|