format

fun format(results: List<Result>, reportDir: Path? = null)(source)

Write formatted output for the given results.

Parameters

results

The changeset from a recipe run. May be empty.

reportDir

Directory where openrewrite-report.json is written when outputMode is OutputMode.REPORT. Defaults to the current directory. Ignored for OutputMode.DIFF and OutputMode.FILES.