[][src]Struct rslint_cli::RulesConfig

pub struct RulesConfig { /* fields omitted */ }

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]

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]

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]

impl<'de> Deserialize<'de> for RulesConfig where
    RulesConfig: Default
[src]

impl Serialize for RulesConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> Erasable for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.