diff --git a/internal/api/handlers_cicd.go b/internal/api/handlers_cicd.go index 34c13f48..a8f93bb9 100644 --- a/internal/api/handlers_cicd.go +++ b/internal/api/handlers_cicd.go @@ -152,6 +152,7 @@ func (s *Server) handleCouplingAnalyze(w http.ResponseWriter, r *http.Request) { return } + // Batch analyze all files at once to avoid O(n²) complexity WriteJSON(w, result, http.StatusOK) }