mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00:00
type: ignore[codes]
and knot: ignore
(#15078)
This commit is contained in:
parent
9eb73cb7e0
commit
2f85749fa0
13 changed files with 737 additions and 48 deletions
|
@ -321,7 +321,7 @@ impl LintRegistryBuilder {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Default, Debug)]
|
||||
#[derive(Default, Debug, Clone)]
|
||||
pub struct LintRegistry {
|
||||
lints: Vec<LintId>,
|
||||
by_name: FxHashMap<&'static str, LintEntry>,
|
||||
|
@ -385,7 +385,7 @@ pub enum GetLintError {
|
|||
Unknown(String),
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq, Eq)]
|
||||
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
|
||||
pub enum LintEntry {
|
||||
/// An existing lint rule. Can be in preview, stable or deprecated.
|
||||
Lint(LintId),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue