pub struct Semgrep;Expand description
The adapter.
Trait Implementations§
Source§impl Adapter for Semgrep
impl Adapter for Semgrep
Source§fn analyzer(&self) -> &'static str
fn analyzer(&self) -> &'static str
The analyzer id — the value that appears in every layer key and finding
key this adapter produces.
Source§fn summary(&self) -> &'static str
fn summary(&self) -> &'static str
A one-line description of what it looks for, for
roteiro security status and --help.Source§fn languages(&self) -> &'static [&'static str]
fn languages(&self) -> &'static [&'static str]
The languages this adapter produces findings for, as the coverage matrix
in ADR-0018 states them. Reported by the CLI so the claim is inspectable
rather than only documented.
Source§fn asset_ids(&self) -> &'static [&'static str]
fn asset_ids(&self) -> &'static [&'static str]
Which pinned assets the analyzer needs before it can run offline (see
crate::assets). An empty slice means it needs none.Source§fn command(&self, assets: &AssetPaths<'_>) -> Invocation
fn command(&self, assets: &AssetPaths<'_>) -> Invocation
The argv that makes the analyzer emit the native format
Adapter::normalize parses, with egress configured off. Read moreSource§fn normalize(
&self,
native: &[u8],
ctx: &NativeContext<'_>,
) -> Result<NormalizedReport, ExecError>
fn normalize( &self, native: &[u8], ctx: &NativeContext<'_>, ) -> Result<NormalizedReport, ExecError>
Parse native output into a normalized report. Read more
impl Copy for Semgrep
Auto Trait Implementations§
impl Freeze for Semgrep
impl RefUnwindSafe for Semgrep
impl Send for Semgrep
impl Sync for Semgrep
impl Unpin for Semgrep
impl UnsafeUnpin for Semgrep
impl UnwindSafe for Semgrep
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