KontureScope
Represents a scope containing a set of classes for writing architecture rules in a Konsist-inspired fluent DSL.
A scope acts as the starting point or container for filtering, querying, and running assertions against Kotlin class declarations in your codebase.
Types
Functions
Asserts that all class declarations in the scope represent abstract classes or interfaces.
Asserts that all class declarations in the scope extend or implement any of the specified supertypes.
Asserts that classes in a KontureScope are assignable to first and additional supertypes.
Asserts that classes in a KontureScope are assignable to type parameter T.
Asserts that all class declarations in the scope are data classes.
Asserts that all class declarations in the scope represent enum classes.
Asserts that all class declarations in the scope are inline/value classes.
Asserts that all class declarations in the scope represent interfaces.
Asserts that all class declarations in the scope are internal.
Asserts that all class declarations in the scope are private.
Asserts that all class declarations in the scope are protected.
Asserts that all class declarations in the scope are public.
Asserts that all class declarations in the scope are sealed classes.
Asserts that all classes in this scope have KDoc documentation.
Asserts that all class declarations in the scope have at least one of the specified annotations. Matches either the annotation's simple name or its fully qualified name (FQN).
Asserts that classes in a KontureScope have the specified annotations.
Asserts that classes in a KontureScope have annotation type parameter T.
Asserts that all class declarations in the scope have the specified visibility.
Asserts that all class declarations in the scope have names ending with any of the specified suffixes.
Asserts that all class declarations in the scope have names matching any of the specified glob patterns. Supports '*' wildcards.
Asserts that all class declarations in the scope have names starting with any of the specified prefixes.
Asserts that the selected classes in the scope are not accessed by any class residing in packages matching the specified patterns.
Asserts that the selected classes in the scope do not depend on classes residing in packages matching the specified patterns.
Asserts that the selected classes in the scope are only accessed by classes residing in packages matching the specified patterns.
Asserts that the selected classes in the scope depend only on classes residing in packages matching the specified patterns.
Asserts that all class declarations in the scope reside in packages matching any of the specified patterns. Matches using standard Kotlin package wildcard matching (e.g. "..domain..").
Asserts that all classes in this scope satisfy predicate.
Filters classes in this scope to normal classes.
Filters classes in this scope to data classes.
Filters classes in this scope ending with suffix.
Filters classes in this scope starting with prefix.
Filters classes in this scope to inline/value classes.
Filters this class selector to include classes residing in packages matching the specified pattern.
Filters classes in this scope to interfaces.
Filters classes in this scope to internal classes.
Subtracts classes present in other scope from this scope.
Combines two KontureScope instances into a new scope containing classes from both.
Filters classes in this scope to private classes.
Filters classes in this scope to protected classes.
Filters classes in this scope to public classes.
Filters classes in this scope residing in packages matching packagePattern.
Filters classes in this scope to sealed classes.
Returns a fluent assertion scope for sequential assertions on this ClassSelector.
Filters classes in a KontureScope returning those with annotation type parameter T.
Filters classes in this scope with annotation annotationFqName.
Filters classes in a KontureScope returning those with annotation annotation.
Filters classes in this scope with modifier.
Filters classes in this scope residing in module modulePath.
Filters this class selector to include classes whose simple names match the specified pattern.
Filters classes in this scope matching name pattern pattern.
Filters classes in a KontureScope returning those without annotation type parameter T.
Filters classes in this scope without annotation annotationFqName.
Filters classes in a KontureScope returning those without annotation annotation.
Filters classes in this scope with visibility.