Skip to content

Commit

Permalink
docs(Graph): Fix syntax highlighting of a TODO statement
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Oct 20, 2023
1 parent cb6a186 commit 937c5ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions analyzer/src/main/kotlin/managers/utils/Graph.kt
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ internal class Graph<T> private constructor(private val nodeMap: MutableMap<T, M

/**
* Return a copy of this Graph with edges removed so that no circle remains.
*
* TODO: The code has been copied from DependencyGraphBuilder as a temporary solutions. Once GoMod is migrated to
* use the dependency graph, this function can be dropped and the one from DependencyGraphBuilder can be re-used,
* see also https://github.com/oss-review-toolkit/ort/issues/4249.
* use the dependency graph, this function can be dropped and the one from DependencyGraphBuilder can be
* re-used, see also https://github.com/oss-review-toolkit/ort/issues/4249.
*/
fun breakCycles(): Graph<T> {
val outgoingEdgesForNodes = nodeMap.mapValuesTo(mutableMapOf()) { it.value.toMutableSet() }
Expand Down

0 comments on commit 937c5ea

Please sign in to comment.