ruff/crates/ruff_db/src
Brent Westbrook 37fbe58b13
Document `LinterResult::has_syntax_error` and add `Parsed::has_no_syntax_errors` (#16443)
Summary
--

This is a follow up addressing the comments on #16425. As @dhruvmanila
pointed out, the naming is a bit tricky. I went with `has_no_errors` to
try to differentiate it from `is_valid`. It actually ends up negated in
most uses, so it would be more convenient to have `has_any_errors` or
`has_errors`, but I thought it would sound too much like the opposite of
`is_valid` in that case. I'm definitely open to suggestions here.

Test Plan
--

Existing tests.
2025-03-04 08:35:38 -05:00
..
files Remove workspace support (#15472) 2025-01-15 09:03:38 +01:00
system [red-knot] User-level configuration (#16021) 2025-02-10 16:44:23 +01:00
vendored Setup tracing and document tracing usage (#12730) 2024-08-08 06:28:40 +00:00
diagnostic.rs ruff_db: add "secondary" messages to `Diagnostic` trait 2025-02-19 08:24:19 -05:00
display.rs Upgrade Rust toolchain to 1.83 (#14677) 2024-11-29 12:05:05 +00:00
file_revision.rs Set durabilities for low-durability fields on high-durability inputs (#12627) 2024-08-02 19:42:34 +02:00
files.rs Upgrade salsa (#15039) 2024-12-17 15:50:33 +00:00
lib.rs [red-knot] Prefix `Type::call` and `dunder_call` with `try` (#16261) 2025-02-20 09:05:04 +00:00
panic.rs [red-knot] Print non-string panic payloads and (sometimes) backtraces (#15363) 2025-01-08 18:12:16 -05:00
parsed.rs Document `LinterResult::has_syntax_error` and add `Parsed::has_no_syntax_errors` (#16443) 2025-03-04 08:35:38 -05:00
source.rs Introduce `Diagnostic` trait (#14130) 2024-11-07 13:26:21 +01:00
system.rs [red-knot] User-level configuration (#16021) 2025-02-10 16:44:23 +01:00
testing.rs Transition to salsa coarse-grained tracked structs (#15763) 2025-02-11 11:38:50 +01:00
vendored.rs Upgrade Rust toolchain to 1.83 (#14677) 2024-11-29 12:05:05 +00:00