pub struct ToolConfirmationRequiredRule;Expand description
AIL203 tool-confirmation-required: destructive actions need a confirmation step.
Trait Implementations§
Source§impl Debug for ToolConfirmationRequiredRule
impl Debug for ToolConfirmationRequiredRule
Source§impl Default for ToolConfirmationRequiredRule
impl Default for ToolConfirmationRequiredRule
Source§fn default() -> ToolConfirmationRequiredRule
fn default() -> ToolConfirmationRequiredRule
Returns the “default value” for a type. Read more
Source§impl Rule for ToolConfirmationRequiredRule
impl Rule for ToolConfirmationRequiredRule
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 ToolConfirmationRequiredRule
impl RefUnwindSafe for ToolConfirmationRequiredRule
impl Send for ToolConfirmationRequiredRule
impl Sync for ToolConfirmationRequiredRule
impl Unpin for ToolConfirmationRequiredRule
impl UnsafeUnpin for ToolConfirmationRequiredRule
impl UnwindSafe for ToolConfirmationRequiredRule
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