mirror of https://github.com/astral-sh/ruff
new module for parsing ranged suppressions (#21441)
This adds a new `suppression` module to the `ruff_linter` crate, similar to the suppression module for ty, to parse comments for ruff suppression directives, such as `# ruff: disable[CODE]`.
This commit is contained in:
parent
7b0aab1696
commit
abaa49f552
|
|
@ -3124,6 +3124,7 @@ dependencies = [
|
|||
"bitflags 2.10.0",
|
||||
"clap",
|
||||
"colored 3.0.0",
|
||||
"compact_str",
|
||||
"fern",
|
||||
"glob",
|
||||
"globset",
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ anyhow = { workspace = true }
|
|||
bitflags = { workspace = true }
|
||||
clap = { workspace = true, features = ["derive", "string"], optional = true }
|
||||
colored = { workspace = true }
|
||||
compact_str = { workspace = true }
|
||||
fern = { workspace = true }
|
||||
glob = { workspace = true }
|
||||
globset = { workspace = true }
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ pub mod rule_selector;
|
|||
pub mod rules;
|
||||
pub mod settings;
|
||||
pub mod source_kind;
|
||||
pub mod suppression;
|
||||
mod text_helpers;
|
||||
pub mod upstream_categories;
|
||||
mod violation;
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue