pub struct CiAnalyzer { /* private fields */ }Expand description
CiAnalyzer — enforces the ghost_command rule (deterministic).
Strategy: scan Makefile / justfile / GitHub workflow YAMLs for cargo
invocations. For each --package <name> / -p <name> / --bin <name>
argument, confirm the target exists in cargo metadata. Anything else
(unknown packages, unknown bins) is a ghost command.
Implementations§
Source§impl CiAnalyzer
impl CiAnalyzer
Sourcepub fn with_metadata(md: CargoMetadata) -> Self
pub fn with_metadata(md: CargoMetadata) -> Self
Construct with pre-loaded metadata (used by tests so they don’t shell out).
Trait Implementations§
Source§impl Default for CiAnalyzer
impl Default for CiAnalyzer
Source§fn default() -> CiAnalyzer
fn default() -> CiAnalyzer
Returns the “default value” for a type. Read more
Source§impl DriftAnalyzer for CiAnalyzer
impl DriftAnalyzer for CiAnalyzer
fn analyze(&self, ctx: &ProjectContext) -> Vec<Divergence>
Auto Trait Implementations§
impl Freeze for CiAnalyzer
impl RefUnwindSafe for CiAnalyzer
impl Send for CiAnalyzer
impl Sync for CiAnalyzer
impl Unpin for CiAnalyzer
impl UnsafeUnpin for CiAnalyzer
impl UnwindSafe for CiAnalyzer
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> 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