pub struct OrphanedDocumentRule;Expand description
AIL340 orphaned-document: flags guidance files no other document references.
Trait Implementations§
Source§impl BatchRule for OrphanedDocumentRule
impl BatchRule for OrphanedDocumentRule
Source§fn applies_to(&self, file_type: FileType) -> bool
fn applies_to(&self, file_type: FileType) -> bool
Applies to every Markdown document — this rule needs generic docs in scope to discover islands.
Source§fn default_severity(&self) -> Severity
fn default_severity(&self) -> Severity
Severity when no config override applies.
Source§fn run_batch(
&self,
docs: &[ParsedDocument],
_ctx: &RuleContext<'_>,
) -> Vec<Violation>
fn run_batch( &self, docs: &[ParsedDocument], _ctx: &RuleContext<'_>, ) -> Vec<Violation>
Inspect the whole corpus at once and return any findings.
Source§impl Debug for OrphanedDocumentRule
impl Debug for OrphanedDocumentRule
Source§impl Default for OrphanedDocumentRule
impl Default for OrphanedDocumentRule
Source§fn default() -> OrphanedDocumentRule
fn default() -> OrphanedDocumentRule
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OrphanedDocumentRule
impl RefUnwindSafe for OrphanedDocumentRule
impl Send for OrphanedDocumentRule
impl Sync for OrphanedDocumentRule
impl Unpin for OrphanedDocumentRule
impl UnsafeUnpin for OrphanedDocumentRule
impl UnwindSafe for OrphanedDocumentRule
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