use super::{Context, LintRule};
use crate::{Program, ProgramRef};
use std::sync::Arc;
#[derive(Debug)]
pub struct BanUnusedIgnore;
impl LintRule for BanUnusedIgnore {
fn new() -> Arc<Self> {
Arc::new(BanUnusedIgnore)
}
fn tags(&self) -> &'static [&'static str] {
&["recommended"]
}
fn code(&self) -> &'static str {
"ban-unused-ignore"
}
fn lint_program(&self, _context: &mut Context, _program: ProgramRef<'_>) {
unreachable!();
}
fn lint_program_with_ast_view(
&self,
_context: &mut Context,
_program: Program<'_>,
) {
}
#[cfg(feature = "docs")]
fn docs(&self) -> &'static str {
include_str!("../../docs/rules/ban_unused_ignore.md")
}
fn priority(&self) -> u32 {
u32::MAX
}
}