run
fun run(recipe: Recipe, sourceFiles: List<SourceFile>, ctx: ExecutionContext = defaultContext()): List<Result>(source)
Run recipe against sourceFiles and return all org.openrewrite.Results.
Return
All results that represent a change (before != after). An empty list means the recipe made no modifications to any file.
Parameters
recipe
The activated recipe to execute.
sourceFiles
The full LST (Lossless Semantic Tree) for the project, as produced by io.github.skhokhlov.rewriterunner.lst.LstBuilder.
ctx
Execution context for collecting parse/recipe errors. Defaults to an org.openrewrite.InMemoryExecutionContext that logs warnings.