FunctionsThat

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Restricts the rules to functions annotated with all of the specified annotations. Matches either simple names or FQNs.

Link copied to clipboard

Restricts the rules to functions containing all of the specified modifiers.

Link copied to clipboard
fun haveAnnotationOf(vararg annotationNames: String): FunctionsRuleBuilder
infix fun haveAnnotationOf(annotationNames: List<String>): FunctionsRuleBuilder

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

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.

Link copied to clipboard

Restricts the rules to functions annotated with any of the specified annotations. Matches either simple names or FQNs.

Link copied to clipboard

Restricts the rules to functions containing any of the specified modifiers.

Link copied to clipboard

Restricts the rules to functions where at least one parameter is of one of the specified types.

Link copied to clipboard

Restricts the rules to functions with any of the specified visibilities.

Link copied to clipboard

Restricts the rules to functions containing the specified modifier.

Link copied to clipboard
Link copied to clipboard

Restricts the rules to functions taking exactly these parameter types in order (simple or fully qualified).

Link copied to clipboard
fun haveReturnType(vararg typeFqNames: String): FunctionsRuleBuilder

Restricts the rules to functions with any of the specified return types.

Restricts the rules to functions with the specified return type (simple or fully qualified).

Link copied to clipboard

Restricts the rules to functions with the specified visibility.

Link copied to clipboard
fun resideInAPackage(vararg packagePatterns: String): FunctionsRuleBuilder
infix fun resideInAPackage(packagePattern: String): FunctionsRuleBuilder
infix fun resideInAPackage(packagePatterns: List<String>): FunctionsRuleBuilder
Link copied to clipboard