-
Notifications
You must be signed in to change notification settings - Fork 283
Add handling of negative counter #701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add handling of negative counter #701
Conversation
Codecov ReportBase: 95.55% // Head: 95.50% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #701 +/- ##
==========================================
- Coverage 95.55% 95.50% -0.06%
==========================================
Files 28 28
Lines 3736 3759 +23
Branches 640 645 +5
==========================================
+ Hits 3570 3590 +20
- Misses 93 94 +1
- Partials 73 75 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
I'm simply not sure what the appropriate behaviour is here. Could you explain on a design level what the intended behaviour is, and why?
From what I understand:
By summarization, I mean output such as the following that reports a warning once, and then reports how many instances of the warning type there were (without printing all of them):
I am not saying that we should implement such summarization (it does involve tricky data flows), but want to make sure that “always show all warnings/errors” is the intended behaviour in all modes. |
Co-authored-by: Lukas Atkinson <opensource@LukasAtkinson.de>
The intended default behavior for me is to reject the data and abort. You're right that the user can get lots of warnings and a summarize would be helpful. Counting the issues is not so simple, since we need a parameter (summarize for the file) or a global value (summarize all occurrences). Seeing your log example I think it would be better to check the value when splitting the line. Another option would be to reuse the old flag. If we add an optional argument which defaults to |
I've merged the option and we now only have the The summary on file level is added but not on project level. I think it's important to warn for each file with unrecognized data and not only once per project. |
5fe61c4
to
70f9946
Compare
70f9946
to
ff3496b
Compare
Co-authored-by: Lukas Atkinson <opensource@LukasAtkinson.de>
Add option
--gcov-ignore-parse-errors=negative_hits.warn
or--gcov-ignore-parse-errors=negative_hits.warn_once_per_file
to ignore negative gcov counter values.See #583 (comment) for details.
Closes #583