pub struct AuditArgs {
pub root: PathBuf,
pub level: String,
pub report_type: String,
pub skip_prepare: bool,
pub skip_npm: bool,
pub skip_osv: bool,
pub osv_format: String,
pub skip_react: bool,
pub react_target: Option<PathBuf>,
pub react_diff: Option<String>,
pub react_min_score: u8,
}Expand description
CLI arguments for the security and quality audit command.
Fields§
§root: PathBufRoot directory to start search from
level: StringMinimum npm vulnerability severity to fail on (critical, high, moderate, low)
report_type: Stringaudit-ci report verbosity (important, full, summary)
skip_prepare: boolSkip the yarn.lock generation step required by audit-ci
skip_npm: boolSkip the npm audit-ci pass
skip_osv: boolSkip the Google OSV Scanner pass (covers Rust, npm, Python, .NET, C/C++)
osv_format: StringOSV Scanner output format (table, json, sarif, gh-annotations)
skip_react: boolSkip the react-doctor pass on the web dashboard
react_target: Option<PathBuf>Path to the React/Next.js project for react-doctor
(default:
react_diff: Option<String>Only scan React files changed vs this base branch (e.g. “main”)
react_min_score: u8Minimum react-doctor health score to pass (0–100)
Trait Implementations§
Source§impl Args for AuditArgs
impl Args for AuditArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for AuditArgs
impl FromArgMatches for AuditArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for AuditArgs
impl RefUnwindSafe for AuditArgs
impl Send for AuditArgs
impl Sync for AuditArgs
impl Unpin for AuditArgs
impl UnsafeUnpin for AuditArgs
impl UnwindSafe for AuditArgs
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