On the "Security Hotspots" page, a new button is added between "Add Comment" and "Get Permalink".
- The browser tries to send discovery requests to SonarLint servers on localhost, on ports 64120-64130
- If none is found, an error message box is shown, with message: "We could not open the issue in your IDE. Make sure your IDE is running with the latest version of SonarLint installed."
- If at least one is found, a show request is sent to the first one (in port order) to open the hotspot, and a success message box is shown: "Success. Switch to your IDE to see the security hotspot."
A spinner is shown in the button during the discovery process.
In case of success, the response is a 200 with a JSON body, representing an object with the following attributes:
|ideName||User-friendly short label for the type of IDE||Visual Studio 2015|
|description||User-friendly short label to disambiguate the current IDE instance from other IDE instances||MyProject.proj|
|The base URL of the SonarQube server||https://next.sonarqube.com/sonarqube|
|Key of the project.||my_project|
|Key of the Security Hotspot||AU-TpxcA-iU5OvuD2FL0|
If a parameter is missing, the server will answer with a status 400. Else, it should answer with a 200.