AnalysisConfig

open class AnalysisConfig(project: Project)

Gradle DSL block configuring Konture's analysis performance and persistent caching.

konture {
analysis {
incremental = true
cache = true
}
}
  • incremental mirrors the library-level incremental AST analysis / source hashing flag.

  • cache enables the persistent disk cache (.konture/cache) so unchanged Kotlin files skip re-parsing across test executions and the cache directory participates in Gradle build caching.

  • cacheDir optionally overrides the cache directory. When blank, the plugin places the cache under <rootProject>/.konture/cache/<module-path> for each test task.

Constructors

Link copied to clipboard
constructor(project: Project)

Properties

Link copied to clipboard

Whether persistent disk caching of analysis results is enabled.

Link copied to clipboard

Optional override of the persistent cache directory. Blank means "use the default".

Link copied to clipboard

Whether incremental AST analysis and source content hashing are enabled.

Link copied to clipboard

Maximum number of worker threads for parallel evaluation (0 indicates automatic sizing based on CPU cores).

Link copied to clipboard

Whether parallel evaluation of independent rules is enabled.

Functions

Link copied to clipboard
fun cache(enabled: Boolean)

Enables or disables persistent disk caching.

Link copied to clipboard
fun cacheDir(path: String)

Overrides the persistent cache directory.

Link copied to clipboard
fun incremental(enabled: Boolean)

Enables or disables incremental AST analysis.

Link copied to clipboard
fun maxWorkers(workers: Int)

Configures the maximum number of worker threads for parallel rule evaluation.

Link copied to clipboard
fun parallel(enabled: Boolean)

Enables or disables parallel rule evaluation.