Skip to content

Commit

Permalink
Merge pull request #21
Browse files Browse the repository at this point in the history
Use [miette](https://docs.rs/miette/latest/miette) to report diagnostics, as [codespan_reporting](https://docs.rs/codespan-reporting/latest/codespan_reporting/index.html) has not been actively maintained for a while. This should also fix #18: Currently, all checked files are persisted in the memory (check [here](https://github.com/loichyan/nerdfix/blob/e90e787a40f853916f479062676e293f197d647a/src/runtime.rs#L125)), leading to memory leaks.

This PR also introduces binary files filtering, which significantly reduces "Invalid UTF-8" errors.
  • Loading branch information
loichyan authored Jul 11, 2024
2 parents e90e787 + d1f29e4 commit 4e007e9
Show file tree
Hide file tree
Showing 14 changed files with 714 additions and 376 deletions.
212 changes: 212 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ edition = "2021"
[dependencies]
clap = { version = ">=4.0, <4.5", features = ["derive"] }
codespan-reporting = "0.11.1"
content_inspector = "0.2.4"
extend = "1.2"
indexmap = "2.2"
inquire = "0.7.5"
itertools = "0.13.0"
miette = { version = "7.2", features = ["fancy"] }
noodler = "0.1.0"
nu-ansi-term = "0.50.0"
once_cell = "1.19"
Expand Down
Loading

0 comments on commit 4e007e9

Please sign in to comment.