pub fn get_formatted_data(
    file: Arc<str>,
    formatting_options: FormattingOptions,
    build_config: Option<&BuildConfig>
) -> Result<(usize, String), Vec<String>>
Expand description

Returns number of lines and formatted text. Formatting is done as a 2-step process. Firstly, certain Sway types (like Enums and Structs) are formatted separately in isolation, depending on their type. Secondly, after that, the whole file is formatted/cleaned and checked for smaller things like extra newlines, indentation and similar.