From 56fe4b28bc61039e813bf9716c4b35e533a3c8aa Mon Sep 17 00:00:00 2001 From: Dmitry Kandalov Date: Sun, 7 Apr 2024 17:52:51 +0100 Subject: [PATCH] fix NamedScope.dependsOnlyOn() (issue #178) --- .live-plugins/dependency-rules/plugin.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.live-plugins/dependency-rules/plugin.kts b/.live-plugins/dependency-rules/plugin.kts index 961cf108..1a12b8c3 100644 --- a/.live-plugins/dependency-rules/plugin.kts +++ b/.live-plugins/dependency-rules/plugin.kts @@ -20,7 +20,7 @@ val pluginRunner = createScope("pluginrunner") { it.startsWith("liveplugin.imple val validationManager = DependencyValidationManager.getInstance(project!!) fun NamedScope.nothingDependsOnIt() = validationManager.denyUsages(of = this, `in` = all - this) fun NamedScope.doesNotDependOnAnything() = validationManager.denyUsages(of = all - this, `in` = this) -fun NamedScope.dependsOnlyOn(vararg scopes: NamedScope) = validationManager.denyUsages(of = all - this - scopes.union(), `in` = scopes.union()) +fun NamedScope.dependsOnlyOn(vararg scopes: NamedScope) = validationManager.denyUsages(of = all - this - scopes.union(), `in` = this) validationManager.removeAllRules() actions.nothingDependsOnIt()