oxc/crates/oxc_diagnostics/src
Cameron cef075df17
fix(linter) Report error instead of panicing if the file fails to open (#1098)
closes #1093


e.g.

```
RUST_BACKTRACE=full cargo run  --bin=oxc_cli lint -D=suspicious -D=style -D=restriction -D=pedantic -D=nursery -D=correctness -A=no-useless-escape ./tasks/coverage/typescript/tests/cases/compiler/corrupted.ts
```

Results in:
```

  × Failed to open file
  help: Failed to open file "./tasks/coverage/typescript/tests/cases/compiler/corrupted.ts" with error "stream did not contain valid UTF-8"

Finished in 10ms on 1 file with 126 rules using 12 threads.
Found 0 warnings and 1 error.
```
2023-10-30 09:53:28 +08:00
..
graphic_reporter.rs feat(oxc): a single oxc crate (#522) 2023-07-06 13:35:25 +08:00
graphical_theme.rs feat(oxc): a single oxc crate (#522) 2023-07-06 13:35:25 +08:00
lib.rs fix(linter) Report error instead of panicing if the file fails to open (#1098) 2023-10-30 09:53:28 +08:00
service.rs Fix oxlint --quiet suppressing errors (#1008) 2023-10-18 11:00:27 +08:00