-
-
Notifications
You must be signed in to change notification settings - Fork 114
Closed
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Description
Description
File: TUnit.Analyzers/DependsOnConflictAnalyzer.cs (Lines 121-142)
The method returns immediately when it detects the first cycle in the dependency graph:
if (chain.MethodTraversed(foundDependency))
{
chain.Add(foundDependency);
return chain; // Returns immediately — misses other cycles
}If a dependency graph has multiple cycles, only the first one is reported. Users must fix one cycle, rebuild, and discover the next one iteratively.
Suggested Fix
Continue processing all dependencies and accumulate all cycles before returning, so all cycles are reported at once.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers