Struct harper_core::LintSet
source · pub struct LintSet { /* private fields */ }
Implementations§
source§impl LintSet
impl LintSet
pub fn new() -> Self
pub fn add_standard(&mut self, dictionary: Dictionary) -> &mut Self
pub fn with_standard(self, dictionary: Dictionary) -> Self
pub fn add_spell_check(&mut self, dictionary: Dictionary) -> &mut Self
pub fn with_spell_check(self, dictionary: Dictionary) -> Self
source§impl LintSet
impl LintSet
sourcepub fn add_sentence_capitalization(&mut self) -> &mut Self
pub fn add_sentence_capitalization(&mut self) -> &mut Self
Modifies self, adding the SentenceCapitalization
linter to the set.
sourcepub fn add_unclosed_quotes(&mut self) -> &mut Self
pub fn add_unclosed_quotes(&mut self) -> &mut Self
Modifies self, adding the UnclosedQuotes
linter to the set.
sourcepub fn add_wrong_quotes(&mut self) -> &mut Self
pub fn add_wrong_quotes(&mut self) -> &mut Self
Modifies self, adding the WrongQuotes
linter to the set.
sourcepub fn add_long_sentences(&mut self) -> &mut Self
pub fn add_long_sentences(&mut self) -> &mut Self
Modifies self, adding the LongSentences
linter to the set.
sourcepub fn add_repeated_words(&mut self) -> &mut Self
pub fn add_repeated_words(&mut self) -> &mut Self
Modifies self, adding the RepeatedWords
linter to the set.
sourcepub fn add_spaces(&mut self) -> &mut Self
pub fn add_spaces(&mut self) -> &mut Self
Modifies self, adding the Spaces
linter to the set.
sourcepub fn add_matcher(&mut self) -> &mut Self
pub fn add_matcher(&mut self) -> &mut Self
Modifies self, adding the Matcher
linter to the set.
sourcepub fn with_sentence_capitalization(self) -> Self
pub fn with_sentence_capitalization(self) -> Self
Consumes self, adding the SentenceCapitalization
linter to the set.
sourcepub fn with_unclosed_quotes(self) -> Self
pub fn with_unclosed_quotes(self) -> Self
Consumes self, adding the UnclosedQuotes
linter to the set.
sourcepub fn with_wrong_quotes(self) -> Self
pub fn with_wrong_quotes(self) -> Self
Consumes self, adding the WrongQuotes
linter to the set.
sourcepub fn with_long_sentences(self) -> Self
pub fn with_long_sentences(self) -> Self
Consumes self, adding the LongSentences
linter to the set.
sourcepub fn with_repeated_words(self) -> Self
pub fn with_repeated_words(self) -> Self
Consumes self, adding the RepeatedWords
linter to the set.
sourcepub fn with_spaces(self) -> Self
pub fn with_spaces(self) -> Self
Consumes self, adding the Spaces
linter to the set.
sourcepub fn with_matcher(self) -> Self
pub fn with_matcher(self) -> Self
Consumes self, adding the Matcher
linter to the set.