mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-25 12:55:17 +00:00
Add unused-ignore-comment
rule (#15084)
This commit is contained in:
parent
dcb85b7088
commit
2a99c0be02
8 changed files with 284 additions and 61 deletions
|
@ -3,6 +3,7 @@ use std::hash::BuildHasherDefault;
|
|||
use rustc_hash::FxHasher;
|
||||
|
||||
use crate::lint::{LintRegistry, LintRegistryBuilder};
|
||||
use crate::suppression::UNUSED_IGNORE_COMMENT;
|
||||
pub use db::Db;
|
||||
pub use module_name::ModuleName;
|
||||
pub use module_resolver::{resolve_module, system_module_search_paths, KnownModule, Module};
|
||||
|
@ -47,4 +48,5 @@ pub fn default_lint_registry() -> &'static LintRegistry {
|
|||
/// Register all known semantic lints.
|
||||
pub fn register_lints(registry: &mut LintRegistryBuilder) {
|
||||
types::register_lints(registry);
|
||||
registry.register_lint(&UNUSED_IGNORE_COMMENT);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue