mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-21 11:00:49 +00:00
parent
68ada05b00
commit
2835d94ec5
5 changed files with 215 additions and 73 deletions
|
@ -3,7 +3,7 @@ use std::hash::BuildHasherDefault;
|
|||
use rustc_hash::FxHasher;
|
||||
|
||||
use crate::lint::{LintRegistry, LintRegistryBuilder};
|
||||
use crate::suppression::UNUSED_IGNORE_COMMENT;
|
||||
use crate::suppression::{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};
|
||||
|
@ -49,4 +49,5 @@ pub fn default_lint_registry() -> &'static LintRegistry {
|
|||
pub fn register_lints(registry: &mut LintRegistryBuilder) {
|
||||
types::register_lints(registry);
|
||||
registry.register_lint(&UNUSED_IGNORE_COMMENT);
|
||||
registry.register_lint(&UNKNOWN_RULE);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue