pub enum SuppressionPolicy {
Honor,
Ignore,
}Expand description
Whether downstream consumers (threshold checking, audit logging) should honor parsed suppression markers.
Honor is the default behaviour for bca check runs; Ignore
powers the --no-suppress CLI flag so CI auditors can see the raw,
un-silenced offender list without editing source files.
Variants§
Honor
Skip violations whose metric is covered by an applicable marker.
Ignore
Emit every violation regardless of markers.
Implementations§
Source§impl SuppressionPolicy
impl SuppressionPolicy
Sourcepub const fn from_no_suppress(no_suppress: bool) -> Self
pub const fn from_no_suppress(no_suppress: bool) -> Self
Construct from a boolean no_suppress flag, as parsed from the
CLI. true means “ignore markers” (--no-suppress set);
false means “honor markers” (the default).
Trait Implementations§
Source§impl Clone for SuppressionPolicy
impl Clone for SuppressionPolicy
Source§fn clone(&self) -> SuppressionPolicy
fn clone(&self) -> SuppressionPolicy
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 SuppressionPolicy
impl Debug for SuppressionPolicy
Source§impl PartialEq for SuppressionPolicy
impl PartialEq for SuppressionPolicy
Source§fn eq(&self, other: &SuppressionPolicy) -> bool
fn eq(&self, other: &SuppressionPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SuppressionPolicy
impl Eq for SuppressionPolicy
impl StructuralPartialEq for SuppressionPolicy
Auto Trait Implementations§
impl Freeze for SuppressionPolicy
impl RefUnwindSafe for SuppressionPolicy
impl Send for SuppressionPolicy
impl Sync for SuppressionPolicy
impl Unpin for SuppressionPolicy
impl UnsafeUnpin for SuppressionPolicy
impl UnwindSafe for SuppressionPolicy
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.