Skip to main content

fix_format

Function fix_format 

Source
pub fn fix_format(globs: &[String], user_excludes: &[String]) -> Result<usize>
Expand description

Fix formatting of files in place.

Loads lintel.toml and merges exclude patterns. Returns the number of files that were reformatted.

§Errors

Returns an error if file discovery fails (e.g. invalid glob pattern or I/O error).