RuleSuppressionBuilder

DSL builder for configuring programmatic violation suppressions with mandatory audit reasons.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun classes(predicate: (ClassDeclaration) -> Boolean, reason: String)
fun classes(reason: String, predicate: (ClassDeclaration) -> Boolean)

Suppress violations for classes matching a custom predicate.

Link copied to clipboard
fun classFqName(patternOrFqName: String, reason: String)

Suppress violations for classes matching the fully-qualified name or glob pattern.

Link copied to clipboard
fun file(pathPattern: String, reason: String)

Suppress violations for files matching the given file path or glob pattern.

Link copied to clipboard
fun files(predicate: (FileDeclaration) -> Boolean, reason: String)
fun files(reason: String, predicate: (FileDeclaration) -> Boolean)

Suppress violations for files matching a custom predicate.

Link copied to clipboard
fun function(nameOrFqName: String, reason: String)

Suppress violations for functions matching the given function name or qualified name.

Link copied to clipboard
fun functions(predicate: (FunctionDeclarationContext) -> Boolean, reason: String)
fun functions(reason: String, predicate: (FunctionDeclarationContext) -> Boolean)

Suppress violations for functions matching a custom predicate.

Link copied to clipboard
fun module(modulePath: String, reason: String)

Suppress violations for modules matching the given module path pattern (e.g. :features:*).

Link copied to clipboard
fun modules(predicate: (Module) -> Boolean, reason: String)
fun modules(reason: String, predicate: (Module) -> Boolean)

Suppress violations for modules matching a custom predicate.

Link copied to clipboard
fun properties(predicate: (PropertyDeclarationContext) -> Boolean, reason: String)
fun properties(reason: String, predicate: (PropertyDeclarationContext) -> Boolean)

Suppress violations for properties matching a custom predicate.

Link copied to clipboard
fun property(nameOrFqName: String, reason: String)

Suppress violations for properties matching the given property name or qualified name.

Link copied to clipboard
fun slice(sliceKey: String, reason: String)

Suppress violations for a specific architecture slice.