fix: resolve all golangci-lint errors and integrate linter into CI/CD, Makefile, and check script
CI Quality Checks & Tests / Frontend Typecheck & Build (push) Successful in 1m28s
CI Quality Checks & Tests / Gitleaks Secret Detection (push) Failing after 3m29s
CI Quality Checks & Tests / Go Lint & Unit Tests (push) Failing after 3h12m8s

This commit is contained in:
2026-08-24 21:46:52 -07:00
parent 4197d86626
commit d7ed8876dc
10 changed files with 48 additions and 20 deletions
+3 -5
View File
@@ -345,7 +345,9 @@ func (h *Handler) ImportOPML(w http.ResponseWriter, r *http.Request) {
h.writeError(w, http.StatusBadRequest, "file field is required")
return
}
defer file.Close()
defer func() {
_ = file.Close()
}()
data, err := io.ReadAll(file)
if err != nil {
@@ -524,7 +526,3 @@ func (h *Handler) ViewSharedEntry(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "text/html; charset=utf-8")
_, _ = w.Write([]byte(html))
}
type sqlNullHelper struct {
String string
}
-1
View File
@@ -16,7 +16,6 @@ func NewRouter(h *Handler, authService *auth.AuthService, staticDir string) http
r := chi.NewRouter()
r.Use(middleware.RequestID)
r.Use(middleware.RealIP)
r.Use(middleware.Logger)
r.Use(middleware.Recoverer)
r.Use(middleware.Compress(5))