Skip to main content

run_formatters

Function run_formatters 

Source
pub fn run_formatters(files: &[GeneratedFile], e2e_config: &E2eConfig)
Expand description

Run per-language formatters for all languages that had files generated.

For each language present in files, picks the command from e2e_config.format[lang] when available, then falls back to [default_formatter] for languages that have a built-in default (rust, python). The {dir} placeholder is replaced with {output}/{lang}. Failures are logged as warnings and do not abort the process.