mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-22 03:15:44 +00:00
Add invalid-ignore-comment
rule (#15094)
This commit is contained in:
parent
2835d94ec5
commit
8d327087ef
4 changed files with 188 additions and 25 deletions
|
@ -3,7 +3,7 @@ use std::hash::BuildHasherDefault;
|
|||
use rustc_hash::FxHasher;
|
||||
|
||||
use crate::lint::{LintRegistry, LintRegistryBuilder};
|
||||
use crate::suppression::{UNKNOWN_RULE, UNUSED_IGNORE_COMMENT};
|
||||
use crate::suppression::{INVALID_IGNORE_COMMENT, UNKNOWN_RULE, UNUSED_IGNORE_COMMENT};
|
||||
pub use db::Db;
|
||||
pub use module_name::ModuleName;
|
||||
pub use module_resolver::{resolve_module, system_module_search_paths, KnownModule, Module};
|
||||
|
@ -50,4 +50,5 @@ pub fn register_lints(registry: &mut LintRegistryBuilder) {
|
|||
types::register_lints(registry);
|
||||
registry.register_lint(&UNUSED_IGNORE_COMMENT);
|
||||
registry.register_lint(&UNKNOWN_RULE);
|
||||
registry.register_lint(&INVALID_IGNORE_COMMENT);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue