NoUnusedCheckDsl

class NoUnusedCheckDsl

DSL receiver for creating a NoUnusedCheck with excluded components. Use the exclude functions to exclude components by their identifiers.

Constructors

Link copied to clipboard
fun NoUnusedCheckDsl()

Functions

Link copied to clipboard
fun build(): NoUnusedCheck

Builds a NoUnusedCheck based on the exclusions created via the exclude functions.

Link copied to clipboard
fun exclude(identifier: Identifier<*>)

Excludes a given identifier from the unused check.

Extensions

Link copied to clipboard
inline fun <T : Any> NoUnusedCheckDsl.exclude(qualifier: Qualifier = EmptyQualifier)

Excludes an identifier built from the generic type parameter and the given qualifier, or EmptyQualifier if no qualifier is provided.

fun NoUnusedCheckDsl.exclude(kclass: KClass<*>, qualifier: Qualifier = EmptyQualifier)

Excludes an identifier built from the given class and the given qualifier, or EmptyQualifier if no qualifier is provided.