pub struct MissingRequiredSectionRule;Expand description
AIL003 missing-required-section: file type mandates a section that is absent.
Trait Implementations§
Source§impl Debug for MissingRequiredSectionRule
impl Debug for MissingRequiredSectionRule
Source§impl Default for MissingRequiredSectionRule
impl Default for MissingRequiredSectionRule
Source§fn default() -> MissingRequiredSectionRule
fn default() -> MissingRequiredSectionRule
Returns the “default value” for a type. Read more
Source§impl Rule for MissingRequiredSectionRule
impl Rule for MissingRequiredSectionRule
Source§fn default_severity(&self) -> Severity
fn default_severity(&self) -> Severity
Severity when no config override applies.
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
One-line human description of what the rule enforces. Reporters show
this once per rule group so an auditor knows why it fired.
Source§fn fix_hint(&self) -> &'static str
fn fix_hint(&self) -> &'static str
One-line suggested remediation. Empty string means the rule has no
generic hint (the caller should look at the finding detail instead).
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 MissingRequiredSectionRule
impl RefUnwindSafe for MissingRequiredSectionRule
impl Send for MissingRequiredSectionRule
impl Sync for MissingRequiredSectionRule
impl Unpin for MissingRequiredSectionRule
impl UnsafeUnpin for MissingRequiredSectionRule
impl UnwindSafe for MissingRequiredSectionRule
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