pub struct InputArgs {
pub coverage: Option<PathBuf>,
pub src: Option<PathBuf>,
pub metric: Option<MetricArg>,
pub config: Option<PathBuf>,
pub view: Option<String>,
pub baseline: Option<PathBuf>,
}Fields§
§coverage: Option<PathBuf>Path to the coverage file (adapter-specific format).
Required for analysis; not required for the completions subcommand.
src: Option<PathBuf>Root directory of source files to analyze [default: src]
metric: Option<MetricArg>Complexity metric to use
config: Option<PathBuf>Path to config file (default: auto-discover the adapter’s config TOML)
view: Option<String>Resolve and apply a saved view preset from the adapter’s config TOML.
The preset’s fields (top, min_coverage, max_coverage, sort,
only_failing, no_fail, group_by, minimal_view) are folded
into the parsed CLI before the report is shaped. CLI flags
override the preset’s Option<T> fields. Bare-bool flags
OR-merge with the preset (an explicit --no-fail adds to a
preset’s value but cannot turn off no_fail = true).
baseline: Option<PathBuf>Path to a previously-emitted JSON envelope, used as the baseline for delta analysis.
The analyzer runs the current analysis as usual, then compares
against the baseline’s result block to produce a delta block
in the output (see --format json, --format markdown for
rendering). Generate the baseline file by piping a previous run:
<binary> --coverage <file> --format json > baseline.json.
Delta is informational by default. Pass --delta-gate to
make the delta contribute to the exit code (fails on new
threshold violations introduced by this PR).
Trait Implementations§
Source§impl Args for InputArgs
impl Args for InputArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for InputArgs
impl FromArgMatches for InputArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.