1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-11-23 21:54:45 +02:00
Files
ripgrep/crates
Andrew Gallant 63209ae0b9 printer: fix --stats for --json
Somehow, the JSON printer seems to have never emitted correct summary
statistics. And I believe #3178 is the first time anyone has ever
reported it. I believe this bug has persisted for years. That's
surprising.

Anyway, the problem here was that we were bailing out of `finish()` on
the sink if we weren't supposed to print anything. But we bailed out
before we tallied our summary statistics. Obviously we shouldn't do
that.

Fixes #3178
2025-10-15 21:21:20 -04:00
..
2025-09-22 21:38:08 -04:00
2025-09-19 21:08:19 -04:00
2025-09-19 21:08:19 -04:00
2025-09-19 21:08:19 -04:00
2025-09-19 21:08:19 -04:00
2025-10-15 21:21:20 -04:00
2025-09-19 21:08:19 -04:00