You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rules (at least for code samples) should be able to delegate to other rules by passing them their output.
For instance, given this code sample:
val kotlinConfig =""" plugins{ kotlin("jvm") version $kotlinVersion kotlin("plugin.serialization") version $kotlinVersion id("com.square.anvil") version $anvilVersion } // ...""".trimIndent()
That rule's output would put the literal strings of $kotlinVersion and $anvilVersion into the markdown file's codeblock. In order to correct that, you'd have to add more rules like this:
Rules (at least for code samples) should be able to delegate to other rules by passing them their output.
For instance, given this code sample:
That rule's output would put the literal strings of
$kotlinVersion
and$anvilVersion
into the markdown file's codeblock. In order to correct that, you'd have to add more rules like this:It would be nice if those rules could just be declared as part of the code sample rule, since they're intrinsically linked.
The text was updated successfully, but these errors were encountered: