keyedEnumOption
inline fun <T : Enum<T>, KeyedEnum> keyedEnumOption(name: String, deprecation: RuleOptionDeprecation? = null): ReadOnlyProperty<Rule, RuleOption<T?>>
Declares a keyed enum rule option and exposes it as a property delegate.
inline fun <T : Enum<T>, KeyedEnum> keyedEnumOption(name: String, defaultValue: T, deprecation: RuleOptionDeprecation? = null): ReadOnlyProperty<Rule, RuleOption<T>>
Declares a keyed enum rule option with a default value and exposes it as a property delegate.