Inconsistent summary on error count with --message-format=json #14472
Labels
A-diagnostics
Area: Error and warning messages generated by Cargo itself.
A-json-output
Area: JSON message output
C-bug
Category: bug
E-easy
Experience: Easy
S-accepted
Status: Issue or feature is accepted, and has a team member available to help mentor or review
Problem
cargo check
emits a good summary on error count, but with--message-format json
, the count number is increased by 1 because it seems to include the error summary itself as a new error. This also influences summary count of clippy in the same way.As for warning count, the former reports the count, but with json format, no count is reported.
Steps
Repoducible repo: https://github.com/os-checker/MRE-cargo-error-count
Note: this inconsistency might be a bit different on warning report
Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: