ruff/crates/ruff_linter
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
..
resources [pyupgrade] Do not offer fix when at least one target is global/nonlocal (UP028) (#16451) 2025-03-04 11:28:01 +01:00
src Document LinterResult::has_syntax_error and add Parsed::has_no_syntax_errors (#16443) 2025-03-04 08:35:38 -05:00
Cargo.toml Bump version to Ruff 0.9.9 (#16434) 2025-02-28 10:17:38 +01:00