You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is currently not possible. Each comment belongs to a specific defect in the internal representation, which is shared by all the supported data formats. At the moment, csdiff supports 8 input and 3 output formats.
If we allowed comments not "owned" by any defect, how would the plain-text parser distinguish them from the per-defect comments that we use today? Some developers write comments before the defects while others write comments after the defects. Empty lines are intentionally ignored in this format.
Aaah, you are right, now I see (I have a bad feeling I already reported this before, sorry).
I.e. indeed, there would have to be an additional rule in the format. Like \n\n implying an independent comment (it would be OK if csgrep filtered this out entirely). To me, this still doesn't sound that bad compared to the current behavior - a seemingly error-related comment (might be actually related to a set of errors) is moved down so it looks like a event-related one.
Perhaps we could define three types of comments, generic (separated by multiple newlines), error-related (on top of the ERROR header, single newline-separated) and event-related (on top of the event, single-newline-separated, this way csgrep prints the comment now).
I can imagine this is not a trivial thing to implement though.
See the "Added warnings" comment, it is not assigned to any report:
But csgrep assigns the rport to one of the issues:
The text was updated successfully, but these errors were encountered: