-
Notifications
You must be signed in to change notification settings - Fork 16
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
Please keep the comment position in csgrep output #95
Comments
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. |
I'm not in hurry at all. I just wanted to report this. |
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 Perhaps we could define three types of comments, generic (separated by multiple newlines), error-related (on top of the 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: