RunResult

data class RunResult(val results: List<Result>, val changedFiles: List<Path>, val projectDir: Path)(source)

The result of a single RewriteRunner invocation.

Constructors

Link copied to clipboard
constructor(results: List<Result>, changedFiles: List<Path>, projectDir: Path)

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

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
val results: List<Result>

The raw OpenRewrite Result list produced by the recipe run. Each entry holds the before/after org.openrewrite.SourceFile pair and a precomputed unified diff. An empty list means the recipe made no changes.