-
Notifications
You must be signed in to change notification settings - Fork 43
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
Fixed rule link and hotspot link for Sonarcloud 8.0.0 #165
base: master
Are you sure you want to change the base?
Conversation
pragnesh-is
commented
Nov 28, 2022
•
edited
Loading
edited
- Rule link and Hotspot link is broken for Sonarcloud 8.0.0 #166
- Also added issue type in report
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
<th>Status</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<% for(var i = 0; i < issues.length; i++) { %> | ||
<tr> | ||
<td><a href="<%= sonarBaseURL %>/coding_rules#rule_key=<%= issues[i].rule %>"><%= issues[i].rule %></a></td> | ||
<td><a href="<%= sonarBaseURL %>/organizations/<%= sonarOrganization %>/rules?open=<%= issues[i].rule %>&rule_key=<%= issues[i].rule %>"><%= issues[i].rule %></a></td> |
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.
after some tests, it only works with sonarqube that manage organizations, I tried to find an api endpoint to get the sonarqube edition but I didn't find any, do you have an idea?
@@ -87,7 +87,7 @@ const generateReport = async options => { | |||
const hotspotLink = | |||
options.linkIssues | |||
? (data, hotspot) => (c) => | |||
`<a href="${data.sonarBaseURL}/security_hotspots?${ | |||
`<a href="${data.sonarBaseURL}/project/security_hotspots?${ |
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.
b11f6e1
to
e88baac
Compare