Skip to content

Commit

Permalink
Remove rank and let dot do the ranking. (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
vanniktech committed Apr 19, 2018
1 parent 1c1d21d commit 87523ad
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ internal class DotGenerator(
addedDependencies.add(projectId)
}

if (projects.size > 1) {
// All projects should be displayed on the same level.
val ranking = projects.joinToString(separator = "; ") { "\"${it.dotIdentifier}\"" }
content.append(" { rank = same; $ranking };\n")
}

// Let's gather everything and put it in the file.
projects
.flatMap { project ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ class DependencyGraphGeneratorPluginTest {
| $lib [label="lib", shape="box"];
| $lib1 [label="lib1", shape="box"];
| $lib2 [label="lib2", shape="box"];
| { rank = same; "$app"; "$lib"; "$lib1"; "$lib2" };
| $app -> $lib1;
| $lib1 -> $lib;
| ioreactivexrxjava2rxjava [label="rxjava", shape="box"];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ class DotGeneratorTest {
|digraph G {
| multimulti1 [label="multi1", shape="box"];
| multimulti2 [label="multi2", shape="box"];
| { rank = same; "multimulti1"; "multimulti2" };
| orgjetbrainskotlinkotlinstdlib [label="kotlin-stdlib", shape="box"];
| multimulti1 -> orgjetbrainskotlinkotlinstdlib;
| orgjetbrainsannotations [label="jetbrains-annotations", shape="box"];
Expand Down

0 comments on commit 87523ad

Please sign in to comment.