ruff/crates/ruff_linter/src/message
Brent Westbrook 5bf6977ded
Move GitHub rendering to `ruff_db` (#20320)
## Summary

This is the GitHub analog to #20117. This PR prepares to add a GitHub
output format to ty by moving the implementation from `ruff_linter` to
`ruff_db`. Hopefully this one is a bit easier to review
commit-by-commit. Almost all of the refactoring this time is in the
first commit, then the second commit adds the new `OutputFormat` variant
and moves the file into `ruff_db`. The third commit is just a small
touch up to use a private method that accommodates ty files so that we
can run the tests and update/move the snapshots.

I had to push a fourth commit to fix and test diagnostics without a
span/file.

## Test Plan

Existing tests
2025-09-11 13:11:15 -04:00
..
snapshots Move GitHub rendering to `ruff_db` (#20320) 2025-09-11 13:11:15 -04:00
grouped.rs Refactor diagnostic start|end location helpers (#20309) 2025-09-09 11:39:31 -07:00
mod.rs Move GitHub rendering to `ruff_db` (#20320) 2025-09-11 13:11:15 -04:00
sarif.rs Refactor diagnostic start|end location helpers (#20309) 2025-09-09 11:39:31 -07:00
text.rs Show fixes by default (#19919) 2025-08-29 09:53:05 -04:00