option
fun <T> option(name: String, deprecation: RuleOptionDeprecation? = null, parser: (String) -> T): ReadOnlyProperty<Rule, RuleOption<T?>>
Declares a custom typed rule option and exposes it as a property delegate.
fun <T> option(name: String, defaultValue: T, deprecation: RuleOptionDeprecation? = null, parser: (String) -> T): ReadOnlyProperty<Rule, RuleOption<T>>
Declares a custom typed rule option with a default value and exposes it as a property delegate.