pub struct RuleSelectionArgs {
pub select: Option<Vec<RuleSelector>>,
pub ignore: Vec<RuleSelector>,
pub extend_select: Vec<RuleSelector>,
pub per_file_ignores: Option<Vec<PatternRuleSelectorPair>>,
pub extend_per_file_ignores: Vec<PatternRuleSelectorPair>,
pub fixable: Option<Vec<RuleSelector>>,
pub unfixable: Vec<RuleSelector>,
pub extend_fixable: Vec<RuleSelector>,
}Expand description
Rule-selection flags shared by shuck check.
Fields§
§select: Option<Vec<RuleSelector>>Comma-separated list of rule codes to enable (or ALL, to enable all rules).
ignore: Vec<RuleSelector>Comma-separated list of rule codes to disable.
extend_select: Vec<RuleSelector>Like –select, but adds additional rule codes on top of those already specified.
per_file_ignores: Option<Vec<PatternRuleSelectorPair>>List of mappings from file pattern to code to exclude.
extend_per_file_ignores: Vec<PatternRuleSelectorPair>Like --per-file-ignores, but adds additional ignores on top of those already specified.
fixable: Option<Vec<RuleSelector>>List of rule codes to treat as eligible for fix. Only applicable when fix itself is enabled (e.g., via --fix).
unfixable: Vec<RuleSelector>List of rule codes to treat as ineligible for fix. Only applicable when fix itself is enabled (e.g., via --fix).
extend_fixable: Vec<RuleSelector>Like –fixable, but adds additional rule codes on top of those already specified.
Trait Implementations§
Source§impl Args for RuleSelectionArgs
impl Args for RuleSelectionArgs
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 Clone for RuleSelectionArgs
impl Clone for RuleSelectionArgs
Source§fn clone(&self) -> RuleSelectionArgs
fn clone(&self) -> RuleSelectionArgs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuleSelectionArgs
impl Debug for RuleSelectionArgs
Source§impl Default for RuleSelectionArgs
impl Default for RuleSelectionArgs
Source§fn default() -> RuleSelectionArgs
fn default() -> RuleSelectionArgs
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for RuleSelectionArgs
impl FromArgMatches for RuleSelectionArgs
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 RuleSelectionArgs
impl RefUnwindSafe for RuleSelectionArgs
impl Send for RuleSelectionArgs
impl Sync for RuleSelectionArgs
impl Unpin for RuleSelectionArgs
impl UnsafeUnpin for RuleSelectionArgs
impl UnwindSafe for RuleSelectionArgs
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> 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>
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