pub struct DiffRiskInput<'a> {
pub root: &'a Path,
pub base_ref: &'a str,
pub changed_files: &'a FxHashSet<PathBuf>,
pub renames: &'a [RenamedFile],
pub rules: DiffRiskRules<'a>,
pub base_clone_groups: Option<&'a [BaseCloneGroup]>,
pub head_clone_groups: Vec<Vec<CloneSpan>>,
}Expand description
Inputs of one diff-risk pass.
Fields§
§root: &'a PathHead analysis root. Finding paths are relative to it.
base_ref: &'a strResolved base ref of the audit.
changed_files: &'a FxHashSet<PathBuf>Absolute paths of the changed files.
renames: &'a [RenamedFile]Renames between base and head.
rules: DiffRiskRules<'a>Rule severities.
base_clone_groups: Option<&'a [BaseCloneGroup]>Clone groups of the base snapshot. None turns off
diverged-clone-sibling: without a base pass no copy can be compared.
head_clone_groups: Vec<Vec<CloneSpan>>Instance locations of every head clone group.
Auto Trait Implementations§
impl<'a> Freeze for DiffRiskInput<'a>
impl<'a> RefUnwindSafe for DiffRiskInput<'a>
impl<'a> Send for DiffRiskInput<'a>
impl<'a> Sync for DiffRiskInput<'a>
impl<'a> Unpin for DiffRiskInput<'a>
impl<'a> UnsafeUnpin for DiffRiskInput<'a>
impl<'a> UnwindSafe for DiffRiskInput<'a>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
Converts
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> ⓘ
Converts
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