File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
crates/ruff_linter/src/rules/pygrep_hooks/rules Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff 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]
4247pub struct BlanketNOQA {
4348 missing_colon : bool ,
You can’t perform that action at this time.
0 commit comments