resolve

fun resolve(outputPath: Path, defaults: FormatConfig = FormatConfig()): FormatConfig(source)

Resolves a FormatConfig by walking up from outputPath and merging all .editorconfig files found along the way.

Return

A FormatConfig derived from the merged .editorconfig chain, or defaults if no .editorconfig files are found.

Parameters

outputPath

The output file or directory path to start searching from.

defaults

Fallback values for any properties not specified in .editorconfig.