Function mit_commit_message_lints::lints::read_from_toml_or_else_vcs[][src]

pub fn read_from_toml_or_else_vcs(
    config: &str,
    vcs: &mut dyn Vcs
) -> Result<Lints>
Expand description

Errors

If we fail to parse the toml

Panics

Will panic if the lint prefix isn’t delimited by dots. This should never happen as it’s a constant