ruff/crates/ruff
Brent Westbrook e9b0c33703
Move RDJSON rendering to ruff_db (#19293)
## Summary

Another output format like #19133. This is the
[reviewdog](https://github.com/reviewdog/reviewdog) output format, which
is somewhat similar to regular JSON. Like #19270, in the first commit I
converted from using `json!` to `Serialize` structs, then in the second
commit I moved the module to `ruff_db`.

The reviewdog
[schema](320a8e73a9/proto/rdf/jsonschema/DiagnosticResult.json)
seems a bit more flexible than our JSON schema, so I'm not sure if we
need any preview checks here. I'll flag the places I wasn't sure about
as review comments.

## Test Plan

New tests in `rdjson.rs`, ported from the old `rjdson.rs` module, as
well as the new CLI output tests.

---------

Co-authored-by: Micha Reiser <micha@reiser.io>
2025-07-15 12:39:21 +00:00
..
resources/test/fixtures Rename ruff_cli crate to ruff (#9557) 2024-01-16 17:47:01 -05:00
src Move RDJSON rendering to ruff_db (#19293) 2025-07-15 12:39:21 +00:00
tests Move RDJSON rendering to ruff_db (#19293) 2025-07-15 12:39:21 +00:00
build.rs Use #[expect(lint)] over #[allow(lint)] where possible (#17822) 2025-05-03 21:20:31 +02:00
Cargo.toml Bump 0.12.3 (#19279) 2025-07-11 09:07:50 -04:00