oxc/crates/oxc_diagnostics
Alexander S. b4c87e27a1
refactor(linter): move DiagnosticsReporters to oxlint (#8454)
it was never the plan that oxc_diagnostics should be the
`std::io::stdout` writer:

8fc238ac34/crates/oxc_diagnostics/src/service.rs (L84-L85)

This PR does refactor all reporters to `oxlint` crate and make the
current implementation of `oxc_diagnostics` public for others to
consume.

I added some tests to reflect to expected output (and found some bugs^^)

For the future I think the BufWriter for `std::io::stdout` should come
from outside.
Or maybe `std::fmt::stdout`? I do not know^^"

I could not test 100% of the code, I hope I can fix this with the next
PR which will include a own Tester for oxlint (like `oxc_linter`).
Please be extra careful when reviewing it.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-16 16:11:22 +08:00
..
src refactor(linter): move DiagnosticsReporters to oxlint (#8454) 2025-01-16 16:11:22 +08:00
Cargo.toml refactor(linter): move DiagnosticsReporters to oxlint (#8454) 2025-01-16 16:11:22 +08:00
CHANGELOG.md release(crates): v0.42.0 (#7983) 2024-12-18 11:48:12 +08:00
README.md feat(napi/transform,napi/parser): return structured error object (#7724) 2024-12-08 14:11:56 +00:00

Feature gating napi in other crates will lead to symbol not found when compiling, use this crate for common napi interfaces.