pub struct Args {
pub files: Vec<PathBuf>,
pub exclude: Vec<String>,
pub no_ignore: bool,
pub hidden: bool,
pub base_dir: Option<PathBuf>,
pub max_size: u64,
pub no_follow_symlinks: bool,
pub format: OutputFormat,
pub quiet: bool,
pub output_dir: PathBuf,
pub no_report: bool,
}Expand description
Validate whether files (or standard input) contain well-formed UTF-8, fast.
Fields§
§files: Vec<PathBuf>Files or directories to validate. Directories are walked recursively.
Use - or pass none to read standard input.
exclude: Vec<String>Exclude paths matching this glob when walking directories (repeatable,
gitignore syntax, e.g. --exclude '*.min.js' --exclude target).
no_ignore: boolWhen walking directories, do not respect .gitignore / .ignore files
(they are respected by default).
When walking directories, also descend into hidden files and directories (skipped by default).
base_dir: Option<PathBuf>Confine inputs to this base directory (rejects traversal & symlink escapes).
max_size: u64Maximum number of bytes to read from each input.
no_follow_symlinks: boolReject symbolic links instead of resolving them.
format: OutputFormatOutput format for stdout.
quiet: boolSuppress per-input output and rely on the exit code only.
output_dir: PathBufDirectory for the auto-generated report.sarif / report.md files.
no_report: boolDo not auto-generate the report.sarif / report.md files.
Trait Implementations§
Source§impl Args for Args
impl Args for Args
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Args
impl CommandFactory for Args
Source§impl FromArgMatches for Args
impl FromArgMatches for Args
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>
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>
ArgMatches to self.