Hi! As we were suggested over the recent SonarLint C# analysis in Rider announcement, I give you feedback about a problem I’m facing with.
- Using Sonarlint version 5.1 recently launched, which works now for Rider. Tried both Rider 2021.1.3 and 2021.1.4.
- Just after install SonarLint on Rider 2021.1.3 or 2021.1.4, using default options. Hitting Analyze with Sonarlint button when it says “No analysis done on the current opened file” ends with “No issues found in the current opened file” a few moments later. Then, as well as you hit that button, after a flashing instant it says the same thing — you can see how the stop button turns to red at the same time play and settings icons turn grey, but just for those few moments —.
- Hit such a button whenever you want. Tried waiting for Rider to load completely, with/without Unity opened — just in case —, hitting the button just as it’s available after reload, hitting after “Clear SonarLint Issues”, trying different files, different projects, different PCs with 2021.1.3 as well, and so forth.
- I have not a clue how to make it work. I have also tried a clean SonarLint reinstalling — deleting SonarLint plugin, deleting any other Sonar-related plugin, installing SonarLint again. The same environment is working on a different PC with Rider 2021.1 (Build #RD-211.6693.105).
I think some additional valuable info is about “This file is not automatically analyzed” warning appearing at the bottom of SonarLint Current file tab, despite it’s enabled at SonarLint options. Hover hint says about check SonarLint log but there is not any useful information there, just “Server started on…, Creating container, Analysing, Found 0 issues, Analysing, Found 0 issues…”. Rider is not showing this same warning just in the working project, with such Rider 2021.1 version, aforementioned.