Struct LintGroupConfig

Source
pub struct LintGroupConfig {
Show 131 fields pub desktop: Option<bool>, pub laptop: Option<bool>, pub then_than: Option<bool>, pub mute_point: Option<bool>, pub pique_interest: Option<bool>, pub bare_in_mind: Option<bool>, pub baited_breath: Option<bool>, pub eluded_to: Option<bool>, pub was_aloud: Option<bool>, pub hyphenate_number_day: Option<bool>, pub face_first: Option<bool>, pub left_right_hand: Option<bool>, pub fast_paste: Option<bool>, pub state_of_the_art: Option<bool>, pub want_be: Option<bool>, pub hop_hope: Option<bool>, pub furthermore: Option<bool>, pub overnight: Option<bool>, pub hereby: Option<bool>, pub likewise: Option<bool>, pub compound_nouns: Option<bool>, pub regardless: Option<bool>, pub henceforth: Option<bool>, pub upward: Option<bool>, pub whereupon: Option<bool>, pub insofar: Option<bool>, pub thereupon: Option<bool>, pub nonetheless: Option<bool>, pub anyhow: Option<bool>, pub notwithstanding: Option<bool>, pub widespread: Option<bool>, pub multimedia: Option<bool>, pub multicore: Option<bool>, pub multithreading: Option<bool>, pub devops: Option<bool>, pub underclock: Option<bool>, pub overload: Option<bool>, pub backplane: Option<bool>, pub overclocking: Option<bool>, pub middleware: Option<bool>, pub somewhere: Option<bool>, pub instead: Option<bool>, pub anywhere: Option<bool>, pub nothing: Option<bool>, pub anybody: Option<bool>, pub somebody: Option<bool>, pub nobody: Option<bool>, pub into: Option<bool>, pub proofread: Option<bool>, pub somehow: Option<bool>, pub intact: Option<bool>, pub upset: Option<bool>, pub misunderstood: Option<bool>, pub however: Option<bool>, pub overall: Option<bool>, pub worldwide: Option<bool>, pub postpone: Option<bool>, pub misused: Option<bool>, pub misuse: Option<bool>, pub misunderstand: Option<bool>, pub therefore: Option<bool>, pub myself: Option<bool>, pub itself: Option<bool>, pub whereas: Option<bool>, pub possessive_your: Option<bool>, pub spelled_numbers: Option<bool>, pub an_a: Option<bool>, pub sentence_capitalization: Option<bool>, pub unclosed_quotes: Option<bool>, pub wrong_quotes: Option<bool>, pub long_sentences: Option<bool>, pub repeated_words: Option<bool>, pub spaces: Option<bool>, pub matcher: Option<bool>, pub correct_number_suffix: Option<bool>, pub number_suffix_capitalization: Option<bool>, pub multiple_sequential_pronouns: Option<bool>, pub linking_verbs: Option<bool>, pub avoid_curses: Option<bool>, pub terminating_conjunctions: Option<bool>, pub ellipsis_length: Option<bool>, pub dot_initialisms: Option<bool>, pub boring_words: Option<bool>, pub use_genitive: Option<bool>, pub that_which: Option<bool>, pub capitalize_personal_pronouns: Option<bool>, pub americas: Option<bool>, pub australia: Option<bool>, pub canada: Option<bool>, pub koreas: Option<bool>, pub malaysia: Option<bool>, pub chinese_communist_party: Option<bool>, pub united_organizations: Option<bool>, pub holidays: Option<bool>, pub amazon_names: Option<bool>, pub google_names: Option<bool>, pub meta_names: Option<bool>, pub microsoft_names: Option<bool>, pub apple_names: Option<bool>, pub azure_names: Option<bool>, pub merge_words: Option<bool>, pub plural_conjugate: Option<bool>, pub oxford_comma: Option<bool>, pub no_oxford_comma: Option<bool>, pub pronoun_contraction: Option<bool>, pub currency_placement: Option<bool>, pub somewhat_something: Option<bool>, pub lets_confusion: Option<bool>, pub despite_of: Option<bool>, pub chock_full: Option<bool>, pub human_life: Option<bool>, pub need_help: Option<bool>, pub no_longer: Option<bool>, pub that_challenged: Option<bool>, pub turn_it_off: Option<bool>, pub of_course: Option<bool>, pub and_alike: Option<bool>, pub bad_rap: Option<bool>, pub bated_breath: Option<bool>, pub beck_and_call: Option<bool>, pub change_tack: Option<bool>, pub hunger_pang: Option<bool>, pub en_masse: Option<bool>, pub let_alone: Option<bool>, pub lo_and_behold: Option<bool>, pub sneaking_suspicion: Option<bool>, pub special_attention: Option<bool>, pub everywhere: Option<bool>, pub than_others: Option<bool>, pub supposed_to: Option<bool>, pub spell_check: Option<bool>,
}
Expand description

A collection of all officially supported

Fields§

§desktop: Option<bool>

Configures the use of the Desktop linter. If set to None, the default configuration will be used.

§laptop: Option<bool>

Configures the use of the Laptop linter. If set to None, the default configuration will be used.

§then_than: Option<bool>

Configures the use of the ThenThan linter. If set to None, the default configuration will be used.

§mute_point: Option<bool>

Configures the use of the MutePoint linter. If set to None, the default configuration will be used.

§pique_interest: Option<bool>

Configures the use of the PiqueInterest linter. If set to None, the default configuration will be used.

§bare_in_mind: Option<bool>

Configures the use of the BareInMind linter. If set to None, the default configuration will be used.

§baited_breath: Option<bool>

Configures the use of the BaitedBreath linter. If set to None, the default configuration will be used.

§eluded_to: Option<bool>

Configures the use of the EludedTo linter. If set to None, the default configuration will be used.

§was_aloud: Option<bool>

Configures the use of the WasAloud linter. If set to None, the default configuration will be used.

§hyphenate_number_day: Option<bool>

Configures the use of the HyphenateNumberDay linter. If set to None, the default configuration will be used.

§face_first: Option<bool>

Configures the use of the FaceFirst linter. If set to None, the default configuration will be used.

§left_right_hand: Option<bool>

Configures the use of the LeftRightHand linter. If set to None, the default configuration will be used.

§fast_paste: Option<bool>

Configures the use of the FastPaste linter. If set to None, the default configuration will be used.

§state_of_the_art: Option<bool>

Configures the use of the StateOfTheArt linter. If set to None, the default configuration will be used.

§want_be: Option<bool>

Configures the use of the WantBe linter. If set to None, the default configuration will be used.

§hop_hope: Option<bool>

Configures the use of the HopHope linter. If set to None, the default configuration will be used.

§furthermore: Option<bool>

Configures the use of the Furthermore linter. If set to None, the default configuration will be used.

§overnight: Option<bool>

Configures the use of the Overnight linter. If set to None, the default configuration will be used.

§hereby: Option<bool>

Configures the use of the Hereby linter. If set to None, the default configuration will be used.

§likewise: Option<bool>

Configures the use of the Likewise linter. If set to None, the default configuration will be used.

§compound_nouns: Option<bool>

Configures the use of the CompoundNouns linter. If set to None, the default configuration will be used.

§regardless: Option<bool>

Configures the use of the Regardless linter. If set to None, the default configuration will be used.

§henceforth: Option<bool>

Configures the use of the Henceforth linter. If set to None, the default configuration will be used.

§upward: Option<bool>

Configures the use of the Upward linter. If set to None, the default configuration will be used.

§whereupon: Option<bool>

Configures the use of the Whereupon linter. If set to None, the default configuration will be used.

§insofar: Option<bool>

Configures the use of the Insofar linter. If set to None, the default configuration will be used.

§thereupon: Option<bool>

Configures the use of the Thereupon linter. If set to None, the default configuration will be used.

§nonetheless: Option<bool>

Configures the use of the Nonetheless linter. If set to None, the default configuration will be used.

§anyhow: Option<bool>

Configures the use of the Anyhow linter. If set to None, the default configuration will be used.

§notwithstanding: Option<bool>

Configures the use of the Notwithstanding linter. If set to None, the default configuration will be used.

§widespread: Option<bool>

Configures the use of the Widespread linter. If set to None, the default configuration will be used.

§multimedia: Option<bool>

Configures the use of the Multimedia linter. If set to None, the default configuration will be used.

§multicore: Option<bool>

Configures the use of the Multicore linter. If set to None, the default configuration will be used.

§multithreading: Option<bool>

Configures the use of the Multithreading linter. If set to None, the default configuration will be used.

§devops: Option<bool>

Configures the use of the Devops linter. If set to None, the default configuration will be used.

§underclock: Option<bool>

Configures the use of the Underclock linter. If set to None, the default configuration will be used.

§overload: Option<bool>

Configures the use of the Overload linter. If set to None, the default configuration will be used.

§backplane: Option<bool>

Configures the use of the Backplane linter. If set to None, the default configuration will be used.

§overclocking: Option<bool>

Configures the use of the Overclocking linter. If set to None, the default configuration will be used.

§middleware: Option<bool>

Configures the use of the Middleware linter. If set to None, the default configuration will be used.

§somewhere: Option<bool>

Configures the use of the Somewhere linter. If set to None, the default configuration will be used.

§instead: Option<bool>

Configures the use of the Instead linter. If set to None, the default configuration will be used.

§anywhere: Option<bool>

Configures the use of the Anywhere linter. If set to None, the default configuration will be used.

§nothing: Option<bool>

Configures the use of the Nothing linter. If set to None, the default configuration will be used.

§anybody: Option<bool>

Configures the use of the Anybody linter. If set to None, the default configuration will be used.

§somebody: Option<bool>

Configures the use of the Somebody linter. If set to None, the default configuration will be used.

§nobody: Option<bool>

Configures the use of the Nobody linter. If set to None, the default configuration will be used.

§into: Option<bool>

Configures the use of the Into linter. If set to None, the default configuration will be used.

§proofread: Option<bool>

Configures the use of the Proofread linter. If set to None, the default configuration will be used.

§somehow: Option<bool>

Configures the use of the Somehow linter. If set to None, the default configuration will be used.

§intact: Option<bool>

Configures the use of the Intact linter. If set to None, the default configuration will be used.

§upset: Option<bool>

Configures the use of the Upset linter. If set to None, the default configuration will be used.

§misunderstood: Option<bool>

Configures the use of the Misunderstood linter. If set to None, the default configuration will be used.

§however: Option<bool>

Configures the use of the However linter. If set to None, the default configuration will be used.

§overall: Option<bool>

Configures the use of the Overall linter. If set to None, the default configuration will be used.

§worldwide: Option<bool>

Configures the use of the Worldwide linter. If set to None, the default configuration will be used.

§postpone: Option<bool>

Configures the use of the Postpone linter. If set to None, the default configuration will be used.

§misused: Option<bool>

Configures the use of the Misused linter. If set to None, the default configuration will be used.

§misuse: Option<bool>

Configures the use of the Misuse linter. If set to None, the default configuration will be used.

§misunderstand: Option<bool>

Configures the use of the Misunderstand linter. If set to None, the default configuration will be used.

§therefore: Option<bool>

Configures the use of the Therefore linter. If set to None, the default configuration will be used.

§myself: Option<bool>

Configures the use of the Myself linter. If set to None, the default configuration will be used.

§itself: Option<bool>

Configures the use of the Itself linter. If set to None, the default configuration will be used.

§whereas: Option<bool>

Configures the use of the Whereas linter. If set to None, the default configuration will be used.

§possessive_your: Option<bool>

Configures the use of the PossessiveYour linter. If set to None, the default configuration will be used.

§spelled_numbers: Option<bool>

Configures the use of the SpelledNumbers linter. If set to None, the default configuration will be used.

§an_a: Option<bool>

Configures the use of the AnA linter. If set to None, the default configuration will be used.

§sentence_capitalization: Option<bool>

Configures the use of the SentenceCapitalization linter. If set to None, the default configuration will be used.

§unclosed_quotes: Option<bool>

Configures the use of the UnclosedQuotes linter. If set to None, the default configuration will be used.

§wrong_quotes: Option<bool>

Configures the use of the WrongQuotes linter. If set to None, the default configuration will be used.

§long_sentences: Option<bool>

Configures the use of the LongSentences linter. If set to None, the default configuration will be used.

§repeated_words: Option<bool>

Configures the use of the RepeatedWords linter. If set to None, the default configuration will be used.

§spaces: Option<bool>

Configures the use of the Spaces linter. If set to None, the default configuration will be used.

§matcher: Option<bool>

Configures the use of the Matcher linter. If set to None, the default configuration will be used.

§correct_number_suffix: Option<bool>

Configures the use of the CorrectNumberSuffix linter. If set to None, the default configuration will be used.

§number_suffix_capitalization: Option<bool>

Configures the use of the NumberSuffixCapitalization linter. If set to None, the default configuration will be used.

§multiple_sequential_pronouns: Option<bool>

Configures the use of the MultipleSequentialPronouns linter. If set to None, the default configuration will be used.

§linking_verbs: Option<bool>

Configures the use of the LinkingVerbs linter. If set to None, the default configuration will be used.

§avoid_curses: Option<bool>

Configures the use of the AvoidCurses linter. If set to None, the default configuration will be used.

§terminating_conjunctions: Option<bool>

Configures the use of the TerminatingConjunctions linter. If set to None, the default configuration will be used.

§ellipsis_length: Option<bool>

Configures the use of the EllipsisLength linter. If set to None, the default configuration will be used.

§dot_initialisms: Option<bool>

Configures the use of the DotInitialisms linter. If set to None, the default configuration will be used.

§boring_words: Option<bool>

Configures the use of the BoringWords linter. If set to None, the default configuration will be used.

§use_genitive: Option<bool>

Configures the use of the UseGenitive linter. If set to None, the default configuration will be used.

§that_which: Option<bool>

Configures the use of the ThatWhich linter. If set to None, the default configuration will be used.

§capitalize_personal_pronouns: Option<bool>

Configures the use of the CapitalizePersonalPronouns linter. If set to None, the default configuration will be used.

§americas: Option<bool>

Configures the use of the Americas linter. If set to None, the default configuration will be used.

§australia: Option<bool>

Configures the use of the Australia linter. If set to None, the default configuration will be used.

§canada: Option<bool>

Configures the use of the Canada linter. If set to None, the default configuration will be used.

§koreas: Option<bool>

Configures the use of the Koreas linter. If set to None, the default configuration will be used.

§malaysia: Option<bool>

Configures the use of the Malaysia linter. If set to None, the default configuration will be used.

§chinese_communist_party: Option<bool>

Configures the use of the ChineseCommunistParty linter. If set to None, the default configuration will be used.

§united_organizations: Option<bool>

Configures the use of the UnitedOrganizations linter. If set to None, the default configuration will be used.

§holidays: Option<bool>

Configures the use of the Holidays linter. If set to None, the default configuration will be used.

§amazon_names: Option<bool>

Configures the use of the AmazonNames linter. If set to None, the default configuration will be used.

§google_names: Option<bool>

Configures the use of the GoogleNames linter. If set to None, the default configuration will be used.

§meta_names: Option<bool>

Configures the use of the MetaNames linter. If set to None, the default configuration will be used.

§microsoft_names: Option<bool>

Configures the use of the MicrosoftNames linter. If set to None, the default configuration will be used.

§apple_names: Option<bool>

Configures the use of the AppleNames linter. If set to None, the default configuration will be used.

§azure_names: Option<bool>

Configures the use of the AzureNames linter. If set to None, the default configuration will be used.

§merge_words: Option<bool>

Configures the use of the MergeWords linter. If set to None, the default configuration will be used.

§plural_conjugate: Option<bool>

Configures the use of the PluralConjugate linter. If set to None, the default configuration will be used.

§oxford_comma: Option<bool>

Configures the use of the OxfordComma linter. If set to None, the default configuration will be used.

§no_oxford_comma: Option<bool>

Configures the use of the NoOxfordComma linter. If set to None, the default configuration will be used.

§pronoun_contraction: Option<bool>

Configures the use of the PronounContraction linter. If set to None, the default configuration will be used.

§currency_placement: Option<bool>

Configures the use of the CurrencyPlacement linter. If set to None, the default configuration will be used.

§somewhat_something: Option<bool>

Configures the use of the SomewhatSomething linter. If set to None, the default configuration will be used.

§lets_confusion: Option<bool>

Configures the use of the LetsConfusion linter. If set to None, the default configuration will be used.

§despite_of: Option<bool>

Configures the use of the DespiteOf linter. If set to None, the default configuration will be used.

§chock_full: Option<bool>

Configures the use of the ChockFull linter. If set to None, the default configuration will be used.

§human_life: Option<bool>

Configures the use of the HumanLife linter. If set to None, the default configuration will be used.

§need_help: Option<bool>

Configures the use of the NeedHelp linter. If set to None, the default configuration will be used.

§no_longer: Option<bool>

Configures the use of the NoLonger linter. If set to None, the default configuration will be used.

§that_challenged: Option<bool>

Configures the use of the ThatChallenged linter. If set to None, the default configuration will be used.

§turn_it_off: Option<bool>

Configures the use of the TurnItOff linter. If set to None, the default configuration will be used.

§of_course: Option<bool>

Configures the use of the OfCourse linter. If set to None, the default configuration will be used.

§and_alike: Option<bool>

Configures the use of the AndAlike linter. If set to None, the default configuration will be used.

§bad_rap: Option<bool>

Configures the use of the BadRap linter. If set to None, the default configuration will be used.

§bated_breath: Option<bool>

Configures the use of the BatedBreath linter. If set to None, the default configuration will be used.

§beck_and_call: Option<bool>

Configures the use of the BeckAndCall linter. If set to None, the default configuration will be used.

§change_tack: Option<bool>

Configures the use of the ChangeTack linter. If set to None, the default configuration will be used.

§hunger_pang: Option<bool>

Configures the use of the HungerPang linter. If set to None, the default configuration will be used.

§en_masse: Option<bool>

Configures the use of the EnMasse linter. If set to None, the default configuration will be used.

§let_alone: Option<bool>

Configures the use of the LetAlone linter. If set to None, the default configuration will be used.

§lo_and_behold: Option<bool>

Configures the use of the LoAndBehold linter. If set to None, the default configuration will be used.

§sneaking_suspicion: Option<bool>

Configures the use of the SneakingSuspicion linter. If set to None, the default configuration will be used.

§special_attention: Option<bool>

Configures the use of the SpecialAttention linter. If set to None, the default configuration will be used.

§everywhere: Option<bool>

Configures the use of the Everywhere linter. If set to None, the default configuration will be used.

§than_others: Option<bool>

Configures the use of the ThanOthers linter. If set to None, the default configuration will be used.

§supposed_to: Option<bool>

Configures the use of the SupposedTo linter. If set to None, the default configuration will be used.

§spell_check: Option<bool>

Implementations§

Source§

impl LintGroupConfig

Source

pub fn none() -> Self

Creates a config with all lints disabled.

Source

pub fn fill_default_values(&mut self)

Fills the None values in the configuration with the default values.

Trait Implementations§

Source§

impl Clone for LintGroupConfig

Source§

fn clone(&self) -> LintGroupConfig

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LintGroupConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for LintGroupConfig

Source§

fn default() -> LintGroupConfig

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for LintGroupConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for LintGroupConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for LintGroupConfig

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,