Trait ConfigWarnings

Source
pub trait ConfigWarnings {
    // Required methods
    fn unknown_config_keys(
        &mut self,
        config_file: &Utf8Path,
        workspace_root: &Utf8Path,
        tool: Option<&str>,
        unknown: &BTreeSet<String>,
    );
    fn unknown_reserved_profiles(
        &mut self,
        config_file: &Utf8Path,
        workspace_root: &Utf8Path,
        tool: Option<&str>,
        profiles: &[&str],
    );
    fn deprecated_script_config(
        &mut self,
        config_file: &Utf8Path,
        workspace_root: &Utf8Path,
        tool: Option<&str>,
    );
    fn empty_script_sections(
        &mut self,
        config_file: &Utf8Path,
        workspace_root: &Utf8Path,
        tool: Option<&str>,
        profile_name: &str,
        empty_count: usize,
    );
}
Expand description

Trait for handling configuration warnings.

This trait allows for different warning handling strategies, such as logging warnings (the default behavior) or collecting them for testing purposes.

Required Methods§

Source

fn unknown_config_keys( &mut self, config_file: &Utf8Path, workspace_root: &Utf8Path, tool: Option<&str>, unknown: &BTreeSet<String>, )

Handle unknown configuration keys found in a config file.

Source

fn unknown_reserved_profiles( &mut self, config_file: &Utf8Path, workspace_root: &Utf8Path, tool: Option<&str>, profiles: &[&str], )

Handle unknown profiles found in the reserved default- namespace.

Source

fn deprecated_script_config( &mut self, config_file: &Utf8Path, workspace_root: &Utf8Path, tool: Option<&str>, )

Handle deprecated [script.*] configuration.

Source

fn empty_script_sections( &mut self, config_file: &Utf8Path, workspace_root: &Utf8Path, tool: Option<&str>, profile_name: &str, empty_count: usize, )

Handle warning about empty script sections with neither setup nor wrapper scripts.

Implementors§