From 4e80490c46a2a40db476226ba04fd3c21d853702 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Mon, 3 Jun 2024 23:38:56 -0400 Subject: [PATCH] Add to docs --- .../ruff_linter/src/rules/pygrep_hooks/rules/blanket_noqa.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/ruff_linter/src/rules/pygrep_hooks/rules/blanket_noqa.rs b/crates/ruff_linter/src/rules/pygrep_hooks/rules/blanket_noqa.rs index 2ca15c3efef52..0e1833778590e 100644 --- a/crates/ruff_linter/src/rules/pygrep_hooks/rules/blanket_noqa.rs +++ b/crates/ruff_linter/src/rules/pygrep_hooks/rules/blanket_noqa.rs @@ -18,6 +18,9 @@ use crate::settings::types::PreviewMode; /// maintain, as the annotation does not clarify which diagnostics are intended /// to be suppressed. /// +/// In [preview], this rule also checks for blanket file-level annotations (e.g., +/// `# ruff: noqa`, as opposed to `# ruff: noqa: F401`). +/// /// ## Example /// ```python /// from .base import * # noqa @@ -38,6 +41,8 @@ use crate::settings::types::PreviewMode; /// /// ## References /// - [Ruff documentation](https://docs.astral.sh/ruff/configuration/#error-suppression) +/// +/// [preview]: https://docs.astral.sh/ruff/preview/ #[violation] pub struct BlanketNOQA { missing_colon: bool,