All checks were successful
check / check (push) Successful in 56s
- server.go: drop unused (*Server).serve int return (unparam) and remove the dead exitCode field so cleanShutdown no longer writes to a field nothing reads. - service.go: rename range var ch -> modeChar in parseUserModeString and the isKnownUserModeChar parameter (varnamelen). - service_test.go: rename tc -> testCase (varnamelen); lift the inline struct and caseState to package-level named types (applyUserModeCase, applyUserModeCaseState) with every field set explicitly (exhaustruct); split the 167-line case table into four categorised helpers (funlen); extract the per-case runner and outcome/state verifiers into helpers so TestApplyUserMode drops below gocognit 30 and flattens the wantErr nestif block. No changes to .golangci.yml, Makefile, Dockerfile, or CI config. No //nolint was used to silence any of these findings. docker build --no-cache . passes clean: 0 lint issues, all tests pass with -race, binary compiles.