pub struct SarifFormatter;Expand description
SARIF v2.1.0 output formatter.
Produces Static Analysis Results Interchange Format (SARIF) JSON, compatible with GitHub Code Scanning, VS Code SARIF Viewer, and other SARIF-consuming tools.
Implementations§
Source§impl SarifFormatter
impl SarifFormatter
pub fn format_with_rules( file_results: &[(&Path, &str, &[LintViolation])], rules: &[Box<dyn Rule>], ) -> String
Auto Trait Implementations§
impl Freeze for SarifFormatter
impl RefUnwindSafe for SarifFormatter
impl Send for SarifFormatter
impl Sync for SarifFormatter
impl Unpin for SarifFormatter
impl UnsafeUnpin for SarifFormatter
impl UnwindSafe for SarifFormatter
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> 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