ruff/crates/ruff
Dylan f29c7b03ec
Warn on invalid noqa even when there are no diagnostics (#16178)
On `main` we warn the user if there is an invalid noqa comment[^1] and
at least one of the following holds:

- There is at least one diagnostic
- A lint rule related to `noqa`s is enabled (e.g. `RUF100`)

This is probably strange behavior from the point of view of the user, so
we now show invalid `noqa`s even when there are no diagnostics.

Closes #12831

[^1]: For the current definition of "invalid noqa comment", which may be
expanded in #12811 . This PR is independent of loc. cit. in the sense
that the CLI warnings should be consistent, regardless of which `noqa`
comments are considered invalid.
2025-02-16 13:58:18 -06:00
..
resources/test/fixtures Rename `ruff_cli` crate to `ruff` (#9557) 2024-01-16 17:47:01 -05:00
src Fix formatter warning message for `flake8-quotes` option (#15788) 2025-01-29 16:30:28 +05:30
tests Warn on invalid noqa even when there are no diagnostics (#16178) 2025-02-16 13:58:18 -06:00
Cargo.toml Bump version to 0.9.6 (#16074) 2025-02-10 18:14:04 +05:30
build.rs ruff: add worktree support to build.rs (#14896) 2024-12-10 14:06:59 -05:00