MCPcopy Create free account
hub / github.com/driangle/taskmd / findBlockedTasks

Function findBlockedTasks

apps/cli/internal/cli/report_collect.go:64–81  ·  view source on GitHub ↗
(tasks []*model.Task, taskMap map[string]*model.Task)

Source from the content-addressed store, hash-verified

62}
63
64func findBlockedTasks(tasks []*model.Task, taskMap map[string]*model.Task) []reportTask {
65 var blocked []reportTask
66 for _, t := range tasks {
67 if isTaskBlocked(t, taskMap) {
68 blocked = append(blocked, reportTask{
69 ID: t.ID,
70 Title: t.Title,
71 Status: string(t.Status),
72 Priority: string(t.Priority),
73 Dependencies: t.Dependencies,
74 })
75 }
76 }
77 sort.Slice(blocked, func(i, j int) bool {
78 return blocked[i].ID < blocked[j].ID
79 })
80 return blocked
81}
82
83func findCriticalPathTasks(tasks []*model.Task, taskMap map[string]*model.Task) []reportTask {
84 cpIDs := calculateCriticalPathTasks(tasks, taskMap)

Callers 1

collectReportDataFunction · 0.85

Calls 1

isTaskBlockedFunction · 0.85

Tested by

no test coverage detected