Sonarlint Issue location in Not updated

If your question is about SonarQube for IDE in the IntelliJ Platform, VS Code, Visual Studio, or Eclipse, please post it in that sub-category.

Otherwise, please provide:

  • Operating system: Windows 11
  • IDE name and flavor/env: IDZ Version 17.0.2 running on eclipse
  • latest version of SonarQube for IDE/Eclipse (org.sonarlint.eclipse.site-11.14.0.83019.zip)
  • Sonar server : Version 9.9.4 (build 87374)

And a thorough description of the problem / question:

Hello Team,

I am running analysis on Cobol code via Sonarlint and I am trying to use the option of SonarQube Issue locations based on issues reported on ‘SonarQube on the fly’ , but SonarQube location is always empty and it always gives me message as ‘ No additional location associated with the issue ‘

Please let me know resolution of this or if you need any more information let me know .

Regards

Roopali

Hi @Roopali,

this means no additional location is provided for that issue except for the main location, where the issue is found.

When opening the SonarQube On-The-Fly and double-clicking the issue, you should jump inside the editor to the issue.

Otherwise, please provide a screenshot of the behaviour encountered.

Cheers: :glass_of_milk:

Hello ,

Thanks for your reply . PFB screenshot

To confirm my understanding on this feature , if in my file I have 4 issues reported which are for same rule and if I see first issue on the file , then this ‘Issue location’ feature should show me other 3 locations in the same file too ? Or it works more with injections of issues which might be coming from Parent file to child files ?

No, This might be a Bit ill Phrased. We have to distinguish between a rule and an issue. E.g. A rule is „Don‘t use TODOs“ and an issue is One occurrance of that rule bring violated.

Let‘s that you have a TODO in line 2 and 10.

In the SonarQube On-The-Flay view there would be 2 entries, on of each line. This means 2 issues were raised.

The SonarQube Issue Locations view is only filled when One issue has multiple Locations.

A TODO-issue will only have One Location, but for example if you have an issue that violates the Rule „Don‘t make your method too complex“ (I don‘t remember the Rule key and the exact phrasing if you want to Look it up) and the method has Like 50 different if-Else-statements, then the SonarQube Issue Locations view will Display the 50 different if-Else-statements as they all contribute to the Rule bring violated.

This will also be shown inside the Editor with a Little number Next to the if-Else-Statement (e.g. First Statement, second Statement, etc.)

3 Likes

Thanks alot its very clear now . Thanks

1 Like