-
Notifications
You must be signed in to change notification settings - Fork 187
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
Fix parsing of clang warnings with "C/C++:" prefix #1021
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1021 +/- ##
============================================
- Coverage 89.71% 89.68% -0.03%
Complexity 2284 2284
============================================
Files 354 354
Lines 6690 6692 +2
Branches 698 698
============================================
Hits 6002 6002
- Misses 486 488 +2
Partials 202 202 ☔ View full report in Codecov by Sentry. |
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.
Thanks for the PR!
The prefix was detected as part of the file name leading to a java.nio.file.InvalidPathException in IssueBuilder.isAbsolutePath().
Can you please also expose this bug in a test for IssueBuilder and then catch this Exception in IssueBuilder
and return false
?
I was also thinking about this but it's not clear what to return for |
Well, you can also return |
If we cannot check whether the path is an absolute path or not neither returning |
The prefix was detected as part of the file name leading to a java.nio.file.InvalidPathException in IssueBuilder.isAbsolutePath(). In addition to fixing the path parsing in ClangParser the Exception thrown in the IssueBuilder.isAbsolutePath() is also catched.
35f3641
to
3460211
Compare
Use URI to decode URI encoded absolute paths. See jenkinsci/analysis-model#1021
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.
Normally a test would be required, but since I added one in uhafner/codingstyle#921 we can ignore it right here.
Thanks! |
The prefix was detected as part of the file name
leading to a java.nio.file.InvalidPathException
in IssueBuilder.isAbsolutePath().
In addition to fixing the path parsing in ClangParser
the Exception thrown in the IssueBuilder.isAbsolutePath()
is also catched.
Testing done
Submitter checklist