clean

fun String.clean(workingDir: File): String(source)

Removes various bits of noise and machine-specific variables from a console or report output. Cleans the provided string by applying various modifications such as normalising line separators, using relative paths, enforcing Unix file separators, and removing specific strings or patterns.

Receiver

The raw string that needs to be cleaned.

Return

The cleaned string after all the modifications have been applied.

Parameters

workingDir

The working directory that will be used when making paths relative.