diff --git a/src/main/scala/higherkindness/rules_scala/workers/deps/DepsRunner.scala b/src/main/scala/higherkindness/rules_scala/workers/deps/DepsRunner.scala index 284d1348..a3023903 100644 --- a/src/main/scala/higherkindness/rules_scala/workers/deps/DepsRunner.scala +++ b/src/main/scala/higherkindness/rules_scala/workers/deps/DepsRunner.scala @@ -156,6 +156,18 @@ object DepsRunner extends WorkerMain[Unit] { } else { Nil } + if (!labelsToRemove.isEmpty) { + workRequest.directDepLabels + .diff(workRequest.usedDepWhitelist) + .map { label => + out.println(s"label: ${label} pathsForLabel: ${pathsForLabel(label)}") + } + out.println( + s"labelsToRemove: ${labelsToRemove}." + + s"\nusedDepWhiteList: ${workRequest.usedDepWhitelist}" + + s"\nusedPaths: ${usedPaths}", + ) + } labelsToRemove.foreach { depLabel => out.println(s"Target '$depLabel' not used, please remove it from the deps.") out.println(s"You can use the following buildozer command:")