pub fn auto_format(path: &Path, config: &Config) -> (bool, Option<String>)Expand description
Auto-format a file using the detected formatter for its language.
Returns (formatted, skip_reason):
(true, None)— file was successfully formatted(false, Some(reason))— formatting was skipped, reason explains why
Skip reasons: "unsupported_language", "not_found", "timeout", "error"