pub struct FindingIgnoreMatcher { /* private fields */ }Expand description
Compiled project-relative patterns for hiding source-owned findings.
Positive patterns select paths to hide. Negated patterns (prefixed with
!) select report exceptions. When every pattern is negated, all paths
outside those exceptions are hidden, matching Knip’s ignore semantics.
Implementations§
Source§impl FindingIgnoreMatcher
impl FindingIgnoreMatcher
Sourcepub fn is_ignored(&self, path: &str) -> bool
pub fn is_ignored(&self, path: &str) -> bool
Whether a normalized project-root-relative source path is hidden.
Sourcepub fn unmatched_patterns(&self) -> Vec<&str>
pub fn unmatched_patterns(&self) -> Vec<&str>
Configured patterns that matched no candidate finding path, in config order.
Empty when nothing was configured or when the matcher was never consulted, because a run without candidate paths says nothing about whether a pattern is a typo.
Trait Implementations§
Source§impl Clone for FindingIgnoreMatcher
impl Clone for FindingIgnoreMatcher
Source§impl Debug for FindingIgnoreMatcher
impl Debug for FindingIgnoreMatcher
Auto Trait Implementations§
impl Freeze for FindingIgnoreMatcher
impl RefUnwindSafe for FindingIgnoreMatcher
impl Send for FindingIgnoreMatcher
impl Sync for FindingIgnoreMatcher
impl Unpin for FindingIgnoreMatcher
impl UnsafeUnpin for FindingIgnoreMatcher
impl UnwindSafe for FindingIgnoreMatcher
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