pub struct NoSensitiveDataInInstructionsRule;Expand description
AIL202 no-sensitive-data-in-instructions: flags embedded secrets.
Trait Implementations§
Source§impl Default for NoSensitiveDataInInstructionsRule
impl Default for NoSensitiveDataInInstructionsRule
Source§fn default() -> NoSensitiveDataInInstructionsRule
fn default() -> NoSensitiveDataInInstructionsRule
Returns the “default value” for a type. Read more
Source§impl Rule for NoSensitiveDataInInstructionsRule
impl Rule for NoSensitiveDataInInstructionsRule
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 NoSensitiveDataInInstructionsRule
impl RefUnwindSafe for NoSensitiveDataInInstructionsRule
impl Send for NoSensitiveDataInInstructionsRule
impl Sync for NoSensitiveDataInInstructionsRule
impl Unpin for NoSensitiveDataInInstructionsRule
impl UnsafeUnpin for NoSensitiveDataInInstructionsRule
impl UnwindSafe for NoSensitiveDataInInstructionsRule
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