pub struct LintConfig {
pub disabled_rules: HashSet<String>,
pub severity_overrides: HashMap<String, Severity>,
pub exclude_patterns: Vec<String>,
}Expand description
Configuration for lint rule suppression and severity overrides.
Fields§
§disabled_rules: HashSet<String>§severity_overrides: HashMap<String, Severity>§exclude_patterns: Vec<String>Implementations§
Source§impl LintConfig
impl LintConfig
pub fn load(path: &Path) -> Result<Self>
pub fn find_in_ancestors(start_path: &Path) -> Option<PathBuf>
pub fn merge(&mut self, other: &LintConfig)
pub fn is_disabled(&self, rule: &LintRule) -> bool
pub fn build_exclude_set(&self) -> Option<GlobSet>
Trait Implementations§
Source§impl Clone for LintConfig
impl Clone for LintConfig
Source§fn clone(&self) -> LintConfig
fn clone(&self) -> LintConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LintConfig
impl Debug for LintConfig
Source§impl Default for LintConfig
impl Default for LintConfig
Source§fn default() -> LintConfig
fn default() -> LintConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LintConfig
impl RefUnwindSafe for LintConfig
impl Send for LintConfig
impl Sync for LintConfig
impl Unpin for LintConfig
impl UnsafeUnpin for LintConfig
impl UnwindSafe for LintConfig
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
Mutably borrows from an owned value. Read more