pub struct LintTable { /* private fields */ }Expand description
A resolved table with independent group and rule lanes, preserving specificity.
Implementations§
Source§impl LintTable
impl LintTable
pub fn new(profile: LintProfile) -> Self
pub const fn profile(&self) -> LintProfile
pub fn level(&self, rule: RuleId) -> LintLevel
pub fn source(&self, rule: RuleId) -> &str
Sourcepub fn level_for_source(
&self,
rule: RuleId,
dialect: SourceDialect,
) -> LintLevel
pub fn level_for_source( &self, rule: RuleId, dialect: SourceDialect, ) -> LintLevel
Applies the JavaScript compatibility dialect after ordinary resolution.
Sourcepub fn apply_config(
&mut self,
config: &LintConfig,
) -> Result<Vec<LintIssue>, ForbidOverrideError>
pub fn apply_config( &mut self, config: &LintConfig, ) -> Result<Vec<LintIssue>, ForbidOverrideError>
Applies the project baseline: groups first, then the more-specific rule lane.
Sourcepub fn apply_cli(
&mut self,
overrides: impl IntoIterator<Item = LintOverride>,
) -> Result<Vec<LintIssue>, ForbidOverrideError>
pub fn apply_cli( &mut self, overrides: impl IntoIterator<Item = LintOverride>, ) -> Result<Vec<LintIssue>, ForbidOverrideError>
Applies CLI overrides in declaration order. Rule specificity beats group order.
Trait Implementations§
impl Eq for LintTable
impl StructuralPartialEq for LintTable
Auto Trait Implementations§
impl Freeze for LintTable
impl RefUnwindSafe for LintTable
impl Send for LintTable
impl Sync for LintTable
impl Unpin for LintTable
impl UnsafeUnpin for LintTable
impl UnwindSafe for LintTable
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