mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
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>
50 lines
1.2 KiB
TOML
50 lines
1.2 KiB
TOML
[package]
|
|
name = "oxlint"
|
|
version = "0.15.6"
|
|
authors.workspace = true
|
|
categories.workspace = true
|
|
edition.workspace = true
|
|
homepage.workspace = true
|
|
keywords.workspace = true
|
|
license.workspace = true
|
|
publish = false
|
|
repository.workspace = true
|
|
rust-version.workspace = true
|
|
description.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[lib]
|
|
doctest = false
|
|
|
|
[[bin]]
|
|
name = "oxlint"
|
|
path = "src/main.rs"
|
|
test = false
|
|
doctest = false
|
|
|
|
[target.'cfg(all(not(target_env = "msvc"), not(target_os = "windows")))'.dependencies]
|
|
jemallocator = { workspace = true, optional = true }
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
mimalloc = { workspace = true, optional = true }
|
|
|
|
[dependencies]
|
|
oxc_diagnostics = { workspace = true }
|
|
oxc_linter = { workspace = true }
|
|
oxc_span = { workspace = true }
|
|
|
|
bpaf = { workspace = true, features = ["autocomplete", "bright-color", "derive"] }
|
|
ignore = { workspace = true, features = ["simd-accel"] }
|
|
miette = { workspace = true }
|
|
rayon = { workspace = true }
|
|
rustc-hash = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
tempfile = { workspace = true }
|
|
tracing-subscriber = { workspace = true, features = [] } # Omit the `regex` feature
|
|
|
|
[features]
|
|
default = []
|
|
allocator = ["dep:jemallocator", "dep:mimalloc"]
|