Struct harper_core::LintGroupConfig
source · pub struct LintGroupConfig {Show 13 fields
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 spell_check: Option<bool>,
}
Fields§
§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.
spell_check: Option<bool>
Implementations§
source§impl LintGroupConfig
impl LintGroupConfig
sourcepub fn fill_default_values(&mut self)
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
impl Clone for LintGroupConfig
source§fn clone(&self) -> LintGroupConfig
fn clone(&self) -> LintGroupConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LintGroupConfig
impl Debug for LintGroupConfig
source§impl Default for LintGroupConfig
impl Default for LintGroupConfig
source§fn default() -> LintGroupConfig
fn default() -> LintGroupConfig
source§impl<'de> Deserialize<'de> for LintGroupConfig
impl<'de> Deserialize<'de> for LintGroupConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Serialize for LintGroupConfig
impl Serialize for LintGroupConfig
impl Copy for LintGroupConfig
Auto Trait Implementations§
impl Freeze for LintGroupConfig
impl RefUnwindSafe for LintGroupConfig
impl Send for LintGroupConfig
impl Sync for LintGroupConfig
impl Unpin for LintGroupConfig
impl UnwindSafe for LintGroupConfig
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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