facebookexperimental / MIRAI

Rust mid-level IR Abstract Interpreter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add JSON structure reporting

TomMD opened this issue · comments

Issue

Lack of machine parsable (JSON) output makes MIRAI hard to integrate into CI

Steps to Reproduce

MIRA_FLAGS="--json" cargo mirai

Expected Behavior

stdout or a specified reports file in JSON

Actual Results

Unstructured text is the only MIRAI output.

MIRAI is a plugin for rustc and the latter takes care of emitting the diagnostics. Try RUSTFLAGS="--error-format=json".