Skip to content

Commit abaa49f

Browse files
authored
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]`.
1 parent 7b0aab1 commit abaa49f

File tree

4 files changed

+1534
-0
lines changed

4 files changed

+1534
-0
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/ruff_linter/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ anyhow = { workspace = true }
3535
bitflags = { workspace = true }
3636
clap = { workspace = true, features = ["derive", "string"], optional = true }
3737
colored = { workspace = true }
38+
compact_str = { workspace = true }
3839
fern = { workspace = true }
3940
glob = { workspace = true }
4041
globset = { workspace = true }

crates/ruff_linter/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ pub mod rule_selector;
4646
pub mod rules;
4747
pub mod settings;
4848
pub mod source_kind;
49+
pub mod suppression;
4950
mod text_helpers;
5051
pub mod upstream_categories;
5152
mod violation;

0 commit comments

Comments
 (0)