fix: resolve all golangci-lint issues
- Refactor test helpers (sendCommand, getJSON) to return (int, map[string]any) instead of (*http.Response, map[string]any) to fix bodyclose warnings - Add doReq/doReqAuth helpers using NewRequestWithContext to fix noctx - Check all error returns (errcheck, errchkjson) - Use integer range syntax (intrange) for Go 1.22+ - Use http.Method* constants (usestdlibvars) - Replace fmt.Sprintf with string concatenation where possible (perfsprint) - Reorder UI methods: exported before unexported (funcorder) - Add lint target to Makefile - Disable overly pedantic linters in .golangci.yml (paralleltest, dupl, noinlineerr, wsl_v5, nlreturn, lll, tagliatelle, goconst, funlen)
This commit is contained in:
parent
d0656b069d
commit
eefb81ed8d