pub struct LintConfig {
pub min_severity: IssueSeverity,
pub max_issues: usize,
pub strict_mode: bool,
pub enabled_rules: Vec<&'static str>,
pub disabled_rules: Vec<&'static str>,
}Available on crate feature
analysis only.Expand description
Configuration for linting behavior.
Fields§
§min_severity: IssueSeverityMinimum severity level to report
max_issues: usizeMaximum number of issues to report (0 = unlimited)
strict_mode: boolEnable strict compliance mode
enabled_rules: Vec<&'static str>Enabled rule IDs (empty = all enabled)
disabled_rules: Vec<&'static str>Disabled rule IDs
Implementations§
Source§impl LintConfig
impl LintConfig
Sourcepub const fn with_min_severity(self, severity: IssueSeverity) -> Self
pub const fn with_min_severity(self, severity: IssueSeverity) -> Self
Set minimum severity level.
Sourcepub const fn with_max_issues(self, max: usize) -> Self
pub const fn with_max_issues(self, max: usize) -> Self
Set maximum number of issues.
Sourcepub const fn with_strict_compliance(self, enabled: bool) -> Self
pub const fn with_strict_compliance(self, enabled: bool) -> Self
Enable strict compliance checking.
Sourcepub fn is_rule_enabled(&self, rule_id: &str) -> bool
pub fn is_rule_enabled(&self, rule_id: &str) -> bool
Check if a rule is enabled.
Sourcepub fn should_report_severity(&self, severity: IssueSeverity) -> bool
pub fn should_report_severity(&self, severity: IssueSeverity) -> bool
Check if severity should be reported.
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 · 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
Auto Trait Implementations§
impl Freeze for LintConfig
impl RefUnwindSafe for LintConfig
impl Send for LintConfig
impl Sync for LintConfig
impl Unpin 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