Skip to content

Fixed rule link and hotspot link for Sonarcloud 8.0.0 - #165

Open
pragnesh-is wants to merge 8 commits into
soprasteria:masterfrom
pragnesh-is:improvements
Open

Fixed rule link and hotspot link for Sonarcloud 8.0.0#165
pragnesh-is wants to merge 8 commits into
soprasteria:masterfrom
pragnesh-is:improvements

Conversation

@pragnesh-is

@pragnesh-is pragnesh-is commented Nov 28, 2022

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Comment thread index.ejs
<% 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>

Copy link
Copy Markdown
Member

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?

Comment thread index.js
options.linkIssues
? (data, hotspot) => (c) =>
`<a href="${data.sonarBaseURL}/security_hotspots?${
`<a href="${data.sonarBaseURL}/project/security_hotspots?${

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants