Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Update number of error occurrences reported + Bug fix in HTML reporter #915
Update number of error occurrences reported + Bug fix in HTML reporter #915
Changes from 9 commits
193521f
e0a447a
b03c2a0
f9d3f45
9be0981
da4917a
39f4203
c1885ac
6b48061
43301b7
013b765
f89ad9d
6f91055
b1e19de
5be4fcc
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It isn't necessary to define this separately from
unique_msg_names
. You can instead use a set comprehension to automatically remove duplicates.(But also see my below comment for additional suggestions for this part.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code is okay but is less efficient than it could be. Instead try this approach:
msgs
dict
accumulator mapping errormsg_id
to the count of that message type "seen so far" in the loop. Note that you can initialize the accumulator using all of the unique keys (see above comprehension) with initial corresponding value 0output_lst
or notoutput_lst
that sets thenumber_of_occurrences
for each output message---we don't need to bother with updating this for messages that aren't included in the output!