Skip to content

Commit 4e80490

Browse files
committed
Add to docs
1 parent 24037e4 commit 4e80490

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/ruff_linter/src/rules/pygrep_hooks/rules/blanket_noqa.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ use crate::settings::types::PreviewMode;
1818
/// maintain, as the annotation does not clarify which diagnostics are intended
1919
/// to be suppressed.
2020
///
21+
/// In [preview], this rule also checks for blanket file-level annotations (e.g.,
22+
/// `# ruff: noqa`, as opposed to `# ruff: noqa: F401`).
23+
///
2124
/// ## Example
2225
/// ```python
2326
/// from .base import * # noqa
@@ -38,6 +41,8 @@ use crate::settings::types::PreviewMode;
3841
///
3942
/// ## References
4043
/// - [Ruff documentation](https://docs.astral.sh/ruff/configuration/#error-suppression)
44+
///
45+
/// [preview]: https://docs.astral.sh/ruff/preview/
4146
#[violation]
4247
pub struct BlanketNOQA {
4348
missing_colon: bool,

0 commit comments

Comments
 (0)