pub struct HealthScopeInputs<'a, R> {
pub changed_files: Option<FxHashSet<PathBuf>>,
pub diff_index: Option<&'a DiffIndex>,
pub ws_roots: Option<Vec<PathBuf>>,
pub group_resolver: Option<R>,
}Expand description
Scope inputs the CLI resolves before calling the engine.
The engine no longer fetches changed files, workspace roots, the shared diff
index, or the CODEOWNERS-backed grouping resolver itself: those touch CLI
state (the shared-diff OnceLock, CODEOWNERS parsing, workspace discovery
error rendering), so the CLI resolves them and threads them in here.
Fields§
§changed_files: Option<FxHashSet<PathBuf>>Files changed since the requested git ref, when the run is diff-scoped.
diff_index: Option<&'a DiffIndex>Diff index scoping findings to changed lines.
ws_roots: Option<Vec<PathBuf>>Workspace roots limiting the analysis scope.
group_resolver: Option<R>Grouping resolver for --group-by output; None disables grouping.
Auto Trait Implementations§
impl<'a, R> Freeze for HealthScopeInputs<'a, R>
impl<'a, R> RefUnwindSafe for HealthScopeInputs<'a, R>where
Option<R>: RefUnwindSafe,
impl<'a, R> Send for HealthScopeInputs<'a, R>
impl<'a, R> Sync for HealthScopeInputs<'a, R>
impl<'a, R> Unpin for HealthScopeInputs<'a, R>
impl<'a, R> UnsafeUnpin for HealthScopeInputs<'a, R>where
Option<R>: UnsafeUnpin,
impl<'a, R> UnwindSafe for HealthScopeInputs<'a, R>where
Option<R>: UnwindSafe,
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