SatisfyContext

interface SatisfyContext<T>

Receiver context provided inside satisfy custom predicate assertion blocks.

Parameters

T

The type of subject being evaluated (e.g. ClassDeclaration, FileDeclarationContext).

Properties

Link copied to clipboard
abstract val description: String?

Optional human-readable description explaining this satisfy assertion.

Link copied to clipboard
abstract val graph: ProjectGraph

The project dependency graph context.

Link copied to clipboard
abstract val id: String

The stable rule identifier assigned to this satisfy block.

Link copied to clipboard
abstract val subject: T

The subject currently being evaluated.

Functions

Link copied to clipboard
abstract fun addViolation(message: String)

Records a custom violation message for the current subject.