pub struct AuditIntroduced(pub bool);Expand description
Audit-mode marker emitted on each finding when fallow audit --format json
runs with a base ref. true means the finding’s structural key was not
present at the base ref (introduced by the current changeset); false
means it was inherited. Clone groups compare by content, not by key alone:
true means the group adds a copy that the base did not have, or makes
two different pieces of old code equal, and no duplicates.ignoredClones
entry accepts it. A group whose copies the change edited inside one base
clone serializes false, and its region has the grade inherited-edited
(issue #4968). A clone group whose key is new but whose instances contain
no added line from the diff (a group re-shaped by removing duplication
elsewhere) is demoted to inherited and serializes false (issue #2164).
Such demoted groups additionally carry a demotion_reason field naming the
rule, and their regions are counted in attribution.duplication_demoted
(issue #2220).
Outside of audit sub-results the field is omitted, so call sites typically
hold Option<AuditIntroduced>. Renders to the JSON wire as a bare boolean.
Tuple Fields§
§0: boolTrait Implementations§
Source§impl Clone for AuditIntroduced
impl Clone for AuditIntroduced
impl Copy for AuditIntroduced
Source§impl Debug for AuditIntroduced
impl Debug for AuditIntroduced
Source§impl<'de> Deserialize<'de> for AuditIntroduced
impl<'de> Deserialize<'de> for AuditIntroduced
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for AuditIntroduced
Source§impl PartialEq for AuditIntroduced
impl PartialEq for AuditIntroduced
Source§impl Serialize for AuditIntroduced
impl Serialize for AuditIntroduced
impl StructuralPartialEq for AuditIntroduced
Auto Trait Implementations§
impl Forget for AuditIntroduced
impl Freeze for AuditIntroduced
impl Move for AuditIntroduced
impl RefUnwindSafe for AuditIntroduced
impl Send for AuditIntroduced
impl Sync for AuditIntroduced
impl Unpin for AuditIntroduced
impl UnsafeUnpin for AuditIntroduced
impl UnwindSafe for AuditIntroduced
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.