Skip to content

Commit

Permalink
fix NamedScope.dependsOnlyOn() (issue #178)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkandalov committed Apr 7, 2024
1 parent dc8c0e7 commit 56fe4b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .live-plugins/dependency-rules/plugin.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 56fe4b2

Please sign in to comment.