EditorConfigReader

Reads and merges .editorconfig files by walking up from a given output directory to the filesystem root.

Files closer to the output directory take precedence (child overrides parent). The walk stops when a file declaring root = true is found or the filesystem root is reached.

Constructors

Link copied to clipboard
constructor(fileManager: FileManager)

Functions

Link copied to clipboard
fun resolve(outputPath: Path, defaults: FormatConfig = FormatConfig()): FormatConfig

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