haveAnnotationOf

infix fun haveAnnotationOf(annotationName: String): FunctionsRuleBuilder

Restricts the rules to functions annotated with the specified annotation. Matches either the annotation's simple name or its FQN.

Parameters

annotationName

The annotation name or fully qualified name.


infix fun haveAnnotationOf(annotationNames: List<String>): FunctionsRuleBuilder
fun haveAnnotationOf(vararg annotationNames: String): FunctionsRuleBuilder

Restricts the rules to functions annotated with any of the specified annotations.