eclipsecode-analysisstatic-code-analysissonarlintsonarlint-eclipse

SonarLint Eclipse plugin - purpose of "Issue Locations" and "Rule Description" views


I just downloaded the SonarLint Eclipse plugin and successfully launched an analysis on my projet after configuring my SonarQube server.
The "SonarLint Report" and "SonarLint On-The-Fly" are correctly populated.

However, the "SonarQube Issue Locations" and "SonarQube Rule Description" views remain empty.

Why that? What are they supposed to display? I didn't find an answer on the plugin's documentation.


Solution

  • If you initially open the SonarQube Issue Locations or SonarQube Rule Description Eclipse views on their own (for instance via Quick Access), they will appear empty as you have described in your answer.

    Instead, you should navigate to the SonarLint On-The-Fly view, select an issue and right-click on it. Then select either Rule description or Issue locations, as shown in the following screenshot:

    Sonar Lint Rule description/Issue locations

    From that point onwards just selecting a different issue will automatically refresh the data in the SonarQube Issue Locations orSonarQube Rule Description views.