RuleOptions

class RuleOptions(values: Map<String, String> = emptyMap())

Resolved options for the rule currently being executed.

Constructors

Link copied to clipboard
constructor(values: Map<String, String> = emptyMap())

Properties

Link copied to clipboard

Returns the configured option names.

Functions

Link copied to clipboard
operator fun contains(name: String): Boolean

Returns whether a raw option value is present.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
operator fun <T> get(option: RuleOption<T>): T

Reads an option through a typed rule option declaration.

operator fun get(name: String): String?

Reads the raw string value for compatibility with custom rules.

Link copied to clipboard
fun getValue(name: String): String

Reads the raw string value or fails when the option is missing.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String