pub struct ConfigOverrides {
pub config_file: Option<PathBuf>,
pub definitions: Option<Vec<String>>,
pub features: Option<Vec<String>>,
pub exclude: Option<Vec<String>>,
pub exclude_defaults: Option<bool>,
pub include_hidden: Option<bool>,
pub reporters: Option<Vec<ReporterKind>>,
pub output: Option<PathBuf>,
pub threshold: Option<f64>,
pub require_features: Option<bool>,
pub no_metrics: Option<bool>,
pub rules: BTreeMap<Rule, Severity>,
}Expand description
Command-line or embedding overrides applied after file-based configuration.
Fields§
§config_file: Option<PathBuf>Explicit JSON configuration file, bypassing automatic config-file discovery.
definitions: Option<Vec<String>>Replacement definition-source globs.
features: Option<Vec<String>>Replacement feature-file globs.
exclude: Option<Vec<String>>Replacement custom exclusion globs.
exclude_defaults: Option<bool>Whether built-in generated-directory exclusions remain enabled.
Whether discovery descends into dot-directories.
reporters: Option<Vec<ReporterKind>>Replacement reporter selection.
output: Option<PathBuf>Replacement report output directory.
threshold: Option<f64>Maximum percentage of definitions allowed in active duplication errors.
require_features: Option<bool>Whether a run with no discovered feature files is an operational failure.
no_metrics: Option<bool>Whether machine reports omit runtime measurements.
rules: BTreeMap<Rule, Severity>Per-rule severity overrides.
Trait Implementations§
Source§impl Clone for ConfigOverrides
impl Clone for ConfigOverrides
Source§fn clone(&self) -> ConfigOverrides
fn clone(&self) -> ConfigOverrides
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConfigOverrides
impl Debug for ConfigOverrides
Source§impl Default for ConfigOverrides
impl Default for ConfigOverrides
Source§fn default() -> ConfigOverrides
fn default() -> ConfigOverrides
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConfigOverrides
impl RefUnwindSafe for ConfigOverrides
impl Send for ConfigOverrides
impl Sync for ConfigOverrides
impl Unpin for ConfigOverrides
impl UnsafeUnpin for ConfigOverrides
impl UnwindSafe for ConfigOverrides
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more