pub struct OutputArgs {
pub format: Vec<FormatSpec>,
pub threshold: Option<f64>,
pub strict: bool,
pub lenient: bool,
pub no_fail: bool,
pub delta_gate: bool,
pub minimal_view: bool,
}Fields§
§format: Vec<FormatSpec>Output format(s).
Accepts a single format (--format json) for stdout, or a comma-
separated list to fan out a single analysis pass to multiple
destinations (--format json:envelope.json,markdown:report.md).
Each entry is FORMAT (stdout) or FORMAT:FILE (write to file).
Multi-format invocations require every entry to specify a file —
stdout cannot multiplex (issue #100).
threshold: Option<f64>CRAP score threshold — functions above this fail the check [default: 25]
strict: boolUse strict threshold (15) — for high-quality or safety-critical code
lenient: boolUse lenient threshold (40) — for legacy or transitional code
no_fail: boolAlways exit 0, even when threshold violations exist.
Overrides only the exit-code translation; the underlying analysis
is untouched and result.passed in JSON output still reflects
the truthful pass/fail state, so consumers can detect “would
have failed” even when the process exits 0. Composes with
--quiet for silent success in CI. With --delta-gate, also
overrides the delta-gate exit-code translation (truth still in
delta.summary.passed).
delta_gate: boolFail the build (exit 1) when the baseline comparison introduces new threshold violations.
Off by default — delta is informational unless this flag is set.
Drives off delta.summary.passed, which is true iff
new_violations == 0. Pre-existing violations (functions that
already exceeded threshold in the baseline) do NOT contribute,
so re-running with no code changes never trips the gate. Only
meaningful with --baseline. Composes with --no-fail (which
overrides BOTH gates).
minimal_view: boolOmit the denormalized view.shown row array from JSON output.
Payload-size escape hatch for very large codebases. The
envelope’s result block (the gate) is unaffected; view.spec,
view.eligible_count, view.truncated, and view.shown_summary
remain so consumers retain full scope context. Only meaningful
with --format json.
Trait Implementations§
Source§impl Args for OutputArgs
impl Args for OutputArgs
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 Debug for OutputArgs
impl Debug for OutputArgs
Source§impl FromArgMatches for OutputArgs
impl FromArgMatches for OutputArgs
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.