pub struct CheckCommand {
pub fix: bool,
pub unsafe_fixes: bool,
pub add_ignore: Option<String>,
pub output_format: CheckOutputFormatArg,
pub watch: bool,
pub paths: Vec<PathBuf>,
pub rule_selection: RuleSelectionArgs,
pub file_selection: FileSelectionArgs,
pub no_cache: bool,
pub exit_zero: bool,
pub exit_non_zero_on_fix: bool,
}Expand description
Arguments for shuck check.
Fields§
§fix: boolApply safe fixes.
unsafe_fixes: boolApply unsafe fixes.
add_ignore: Option<String>Enable automatic additions of shuck ignore directives to failing lines. Optionally provide a reason to append after the codes.
output_format: CheckOutputFormatArgOutput serialization format for violations. The default serialization format is “full”.
watch: boolRun in watch mode by re-running whenever files change.
paths: Vec<PathBuf>Files or directories to check.
rule_selection: RuleSelectionArgsRule selection and suppression settings.
file_selection: FileSelectionArgsFile discovery and exclusion settings.
no_cache: boolDisable cache reads and writes.
exit_zero: boolExit with status code “0”, even upon detecting lint violations. Parse errors and error-severity diagnostics still fail.
exit_non_zero_on_fix: boolExit with a non-zero status code if any files were modified via fix, even if no lint violations remain.
Implementations§
Source§impl CheckCommand
impl CheckCommand
Sourcepub fn respect_gitignore(&self) -> bool
pub fn respect_gitignore(&self) -> bool
Whether standard ignore files such as .gitignore should be respected.
Sourcepub fn force_exclude(&self) -> bool
pub fn force_exclude(&self) -> bool
Whether excludes should also apply to explicitly passed paths.
Trait Implementations§
Source§impl Args for CheckCommand
impl Args for CheckCommand
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 Clone for CheckCommand
impl Clone for CheckCommand
Source§fn clone(&self) -> CheckCommand
fn clone(&self) -> CheckCommand
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CheckCommand
impl Debug for CheckCommand
Source§impl FromArgMatches for CheckCommand
impl FromArgMatches for CheckCommand
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.Auto Trait Implementations§
impl Freeze for CheckCommand
impl RefUnwindSafe for CheckCommand
impl Send for CheckCommand
impl Sync for CheckCommand
impl Unpin for CheckCommand
impl UnsafeUnpin for CheckCommand
impl UnwindSafe for CheckCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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