pub struct SecurityValidator { /* private fields */ }Expand description
Security finding validator using LLM.
Validates security findings in batches to reduce false positives. Falls back to pattern confidence if LLM validation fails.
Implementations§
Source§impl SecurityValidator
impl SecurityValidator
Sourcepub async fn validate_findings_batch(
&self,
findings: &[Finding],
file_contents: &HashMap<String, String>,
) -> Result<Vec<ValidatedFinding>>
pub async fn validate_findings_batch( &self, findings: &[Finding], file_contents: &HashMap<String, String>, ) -> Result<Vec<ValidatedFinding>>
Validates a batch of security findings using LLM.
Sends up to BATCH_SIZE findings to the LLM for validation.
Falls back to pattern confidence if LLM response is malformed.
§Arguments
findings- Security findings to validatefile_contents- Map of file paths to their contents for context extraction
§Returns
Vector of validated findings with LLM reasoning
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SecurityValidator
impl !RefUnwindSafe for SecurityValidator
impl Send for SecurityValidator
impl Sync for SecurityValidator
impl Unpin for SecurityValidator
impl !UnwindSafe for SecurityValidator
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more