Expand description
Formats cargo clippy --message-format json output for GitHub Actions.
Read diagnostics from a BufRead stream, filter errors and warnings,
and write the result to a Write sink using one of the three Mode
variants.
use std::io;
use rust_rapport::{Mode, run};
let mut stdout = io::stdout().lock();
let mut stderr = io::stderr().lock();
let report = run(Mode::Github, io::stdin().lock(), &mut stdout, &mut stderr)?;
std::process::exit(if report.is_failure() { 1 } else { 0 });Structs§
Enums§
Functions§
- run
- Reads clippy JSON from
reader, formats according tomode, writes towriter.