pub struct LintablePathSelector { /* private fields */ }Expand description
The shared final gate for files yielded by CLI and LSP discovery walks.
Include overrides decide where to look. This selector decides whether a matching file is a source the adapter can interpret. Explicit config includes can name template-like Markdown files beyond the standard extensions; Rust remains capability-gated even when explicitly named.
Implementations§
Source§impl LintablePathSelector
impl LintablePathSelector
pub fn new( base: Option<&Path>, includes: &[String], mode: LintableFileMode, ) -> Self
Sourcepub fn keeps(&self, path: &Path) -> bool
pub fn keeps(&self, path: &Path) -> bool
Whether an included path is a source this adapter can interpret.
Sourcepub fn configure_types(&self, builder: &mut WalkBuilder) -> Result<(), Error>
pub fn configure_types(&self, builder: &mut WalkBuilder) -> Result<(), Error>
Apply the corresponding coarse file-type filter to a discovery walk.
Self::keeps remains the precise final gate because type filters only
see file names, not root-relative include paths.
Auto Trait Implementations§
impl Freeze for LintablePathSelector
impl RefUnwindSafe for LintablePathSelector
impl Send for LintablePathSelector
impl Sync for LintablePathSelector
impl Unpin for LintablePathSelector
impl UnsafeUnpin for LintablePathSelector
impl UnwindSafe for LintablePathSelector
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