[−][src]Struct rslint_cli::RulesConfig
Implementations
impl RulesConfig
[src]
pub fn error_rule_names(&self) -> impl Iterator<Item = &str>
[src]
pub fn warning_rule_names(&self) -> impl Iterator<Item = &str>
[src]
pub fn grouped_rules<'a>(
&'a self
) -> impl Iterator<Item = Box<dyn CstRule>> + 'a
[src]
&'a self
) -> impl Iterator<Item = Box<dyn CstRule>> + 'a
The rules declared in the config using the groups
field.
pub fn rule_level_by_name(&self, rule_name: &str) -> RuleLevel
[src]
pub fn intersect_allowed<'a, T>(
&'a self,
rules: T,
issue_warnings: bool
) -> impl IntoIterator<Item = T::Item> + 'a where
T: IntoIterator + 'a,
T::Item: Borrow<Box<dyn CstRule>>,
[src]
&'a self,
rules: T,
issue_warnings: bool
) -> impl IntoIterator<Item = T::Item> + 'a where
T: IntoIterator + 'a,
T::Item: Borrow<Box<dyn CstRule>>,
Remove any rules which are explicitly allowed by the allowed
field
if issue_warnings
is true, linter warnings will be emitted stating a rule's configuration
was ignore because its explicitly allowed.
pub fn store(&self) -> CstRuleStore
[src]
Trait Implementations
impl Debug for RulesConfig
[src]
impl Default for RulesConfig
[src]
fn default() -> RulesConfig
[src]
impl<'de> Deserialize<'de> for RulesConfig where
RulesConfig: Default,
[src]
RulesConfig: Default,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for RulesConfig
[src]
Auto Trait Implementations
impl !RefUnwindSafe for RulesConfig
impl Send for RulesConfig
impl Sync for RulesConfig
impl Unpin for RulesConfig
impl !UnwindSafe for RulesConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> Erasable for T
unsafe fn unerase(this: NonNull<Erased>) -> NonNull<T>
const ACK_1_1_0: bool
fn erase(this: NonNull<Self>) -> NonNull<Erased>
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,