pub struct EmptyFileRule;Expand description
AIL002 instructions-file-empty: guidance file has no content.
Trait Implementations§
Source§impl Debug for EmptyFileRule
impl Debug for EmptyFileRule
Source§impl Default for EmptyFileRule
impl Default for EmptyFileRule
Source§fn default() -> EmptyFileRule
fn default() -> EmptyFileRule
Returns the “default value” for a type. Read more
Source§impl Rule for EmptyFileRule
impl Rule for EmptyFileRule
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 EmptyFileRule
impl RefUnwindSafe for EmptyFileRule
impl Send for EmptyFileRule
impl Sync for EmptyFileRule
impl Unpin for EmptyFileRule
impl UnsafeUnpin for EmptyFileRule
impl UnwindSafe for EmptyFileRule
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