RunResult

data class RunResult(val results: List<Result>, val changedFiles: List<Path>, val projectDir: Path, val rawDiffs: Map<Path, String> = emptyMap(), val executionDiagnostics: ExecutionDiagnostics)(source)

The result of a single RewriteRunner invocation.

Constructors

Link copied to clipboard
constructor(results: List<Result>, changedFiles: List<Path>, projectDir: Path, rawDiffs: Map<Path, String> = emptyMap(), executionDiagnostics: ExecutionDiagnostics)

Properties

Link copied to clipboard

Number of source files changed by the recipe.

Link copied to clipboard

Paths of files that were written to disk during this run. Empty when RewriteRunner.Builder.dryRun is true or when results is empty.

Link copied to clipboard

Diagnostic info about which execution path produced the run. See ExecutionDiagnostics and UsedExecutionStage for details.

Link copied to clipboard

true when the recipe produced at least one change, regardless of whether changes were written to disk.

Link copied to clipboard

The project directory that was analysed, for reference.

Link copied to clipboard

Unified diffs keyed by relative file path. Populated by the official plugin and by the default forked LST worker.

Link copied to clipboard
val results: List<Result>

The raw OpenRewrite Result list produced by an explicit in-process LST run. Forked execution deliberately leaves this empty so LST graphs never return to the coordinator.