pub struct NoMissingExamplesRule;Expand description
AIL101 no-missing-examples: behavioral rules should show concrete examples.
Trait Implementations§
Source§impl Debug for NoMissingExamplesRule
impl Debug for NoMissingExamplesRule
Source§impl Default for NoMissingExamplesRule
impl Default for NoMissingExamplesRule
Source§fn default() -> NoMissingExamplesRule
fn default() -> NoMissingExamplesRule
Returns the “default value” for a type. Read more
Source§impl Rule for NoMissingExamplesRule
impl Rule for NoMissingExamplesRule
Source§fn default_severity(&self) -> Severity
fn default_severity(&self) -> Severity
Severity when no config override applies.
Source§fn run(&self, doc: &ParsedDocument, ctx: &RuleContext<'_>) -> Vec<Violation>
fn run(&self, doc: &ParsedDocument, ctx: &RuleContext<'_>) -> Vec<Violation>
Inspect one document and return any findings.
Source§fn applies_to(&self, file_type: FileType) -> bool
fn applies_to(&self, file_type: FileType) -> bool
Whether this rule should run against files of the given type. Defaults
to “AI guidance files only” — rules that also apply to generic
Markdown / YAML must override this.
Auto Trait Implementations§
impl Freeze for NoMissingExamplesRule
impl RefUnwindSafe for NoMissingExamplesRule
impl Send for NoMissingExamplesRule
impl Sync for NoMissingExamplesRule
impl Unpin for NoMissingExamplesRule
impl UnsafeUnpin for NoMissingExamplesRule
impl UnwindSafe for NoMissingExamplesRule
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