From 0f5966895a7fe2636211cc38af2792a1bbf23aa1 Mon Sep 17 00:00:00 2001 From: Konstantinos Nikoloutsos Date: Sat, 23 Nov 2024 11:07:20 +0200 Subject: [PATCH] Show transitive deps as warnings --- .../ExplicitDependencyImportCheckPlugin.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/explicitDependencyImportCheckPlugin/ExplicitDependencyImportCheckPlugin.swift b/Plugins/explicitDependencyImportCheckPlugin/ExplicitDependencyImportCheckPlugin.swift index b0602fb..44659b7 100644 --- a/Plugins/explicitDependencyImportCheckPlugin/ExplicitDependencyImportCheckPlugin.swift +++ b/Plugins/explicitDependencyImportCheckPlugin/ExplicitDependencyImportCheckPlugin.swift @@ -40,7 +40,7 @@ extension ExplicitDependencyImportCheckPlugin { ) throws -> [Command] { guard !transitiveDeps.isEmpty else { return [] } - var transitiveDependenciesErrorText = "error: \(transitiveDeps.count) Transitive dependencies found for \(target.name) 🚨🚨🚨\n" + var transitiveDependenciesErrorText = "warning: \(transitiveDeps.count) Transitive dependencies found for \(target.name) 🚨🚨🚨\n" transitiveDependenciesErrorText += transitiveDeps.map { "👉 \($0) is a transitive dependency" } .joined(separator: "\n")