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§
Sourcefn unknown_config_keys(
&mut self,
config_file: &Utf8Path,
workspace_root: &Utf8Path,
tool: Option<&str>,
unknown: &BTreeSet<String>,
)
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.
Sourcefn unknown_reserved_profiles(
&mut self,
config_file: &Utf8Path,
workspace_root: &Utf8Path,
tool: Option<&str>,
profiles: &[&str],
)
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.
Sourcefn deprecated_script_config(
&mut self,
config_file: &Utf8Path,
workspace_root: &Utf8Path,
tool: Option<&str>,
)
fn deprecated_script_config( &mut self, config_file: &Utf8Path, workspace_root: &Utf8Path, tool: Option<&str>, )
Handle deprecated [script.*]
configuration.