pub struct Config {Show 22 fields
pub root: PathBuf,
pub definitions: Vec<String>,
pub features: Vec<String>,
pub feature_pattern_origin: String,
pub config_warnings: Vec<String>,
pub config_source: String,
pub exclude: Vec<String>,
pub exclude_defaults: bool,
pub include_hidden: bool,
pub reporters: Vec<ReporterKind>,
pub output: PathBuf,
pub threshold: f64,
pub require_features: bool,
pub require_definitions: bool,
pub fail_on_incomplete: bool,
pub registrations: Vec<String>,
pub parameter_types: BTreeMap<String, String>,
pub max_candidate_comparisons: usize,
pub max_structural_class_comparisons: usize,
pub no_metrics: bool,
pub rules: BTreeMap<Rule, Severity>,
pub suppressions: Vec<SuppressionConfig>,
/* private fields */
}Expand description
Fully resolved and validated analyzer configuration.
Fields§
§root: PathBufCanonical repository root being analyzed.
definitions: Vec<String>Globs selecting definition sources, or an empty list for automatic discovery.
features: Vec<String>Globs selecting classic Gherkin or Gherkin Markdown feature files.
feature_pattern_origin: StringHuman-readable origin of the effective feature globs.
config_warnings: Vec<String>Non-fatal diagnostics produced while inspecting framework configuration.
config_source: StringStandalone or package configuration source selected below CLI overrides.
exclude: Vec<String>Globs excluded from discovery.
exclude_defaults: boolWhether built-in generated-directory exclusions are active.
Whether discovery descends into dot-directories.
reporters: Vec<ReporterKind>Report formats emitted by the analyzer.
output: PathBufDirectory for file-based reports.
threshold: f64Maximum percentage of definitions allowed in active duplication errors.
require_features: boolWhether finding no feature files is an operational failure.
require_definitions: boolWhether extracting no step definitions is an operational failure.
fail_on_incomplete: boolWhether an incomplete corpus or truncated analysis is an operational failure.
registrations: Vec<String>Additional local function names that register step definitions.
parameter_types: BTreeMap<String, String>Project-defined Cucumber Expression parameter types and their regular expressions.
max_candidate_comparisons: usizeMaximum unique definition pairs retained for analysis.
max_structural_class_comparisons: usizeMaximum structural candidate proposals considered from one handler class.
no_metrics: boolWhether machine reports omit runtime measurements for reproducibility.
rules: BTreeMap<Rule, Severity>Effective severity for each analysis rule.
suppressions: Vec<SuppressionConfig>Explicit, reason-bearing finding suppressions.
Implementations§
Source§impl Config
impl Config
Sourcepub fn load(root: &Path, overrides: ConfigOverrides) -> Result<Self>
pub fn load(root: &Path, overrides: ConfigOverrides) -> Result<Self>
Loads framework, package, and standalone configuration beneath root, then applies
overrides in precedence order.
Sourcepub fn severity(&self, rule: Rule) -> Severity
pub fn severity(&self, rule: Rule) -> Severity
Returns the configured severity for rule, defaulting to Severity::Off.
Sourcepub fn output_path(&self, filename: &str) -> PathBuf
pub fn output_path(&self, filename: &str) -> PathBuf
Resolves a report filename against the configured output directory.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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
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> ⓘ
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> ⓘ
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