haveAnnotationOf

infix fun haveAnnotationOf(annotationName: String): PropertiesRuleBuilder

Restricts the rules to properties 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>): PropertiesRuleBuilder
fun haveAnnotationOf(vararg annotationNames: String): PropertiesRuleBuilder

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