Information:
- Operating system: Windows 10 Enterprise v10.0.19045
- IDE name and flavor/env:
– Visual Studio Professional 2022
– JetBrains Rider
– Visual Studio Code
And a thorough description of the problem / question:
Hi
I am trying to figure out how SonarLint Connected Mode works in the different IDE’s and I wonder what is important and what not. We have a team of developers that use different IDE’s (Visual Studio, Visual Studio Code and Rider) and I’m looking to find what is actually needed in order for the SonarLint extensions in the different IDE’s to work.
We use SonarCloud and work with .NET projects. A SonarCloud project is linked to a solution.
Personally, I am using Visual Studio. I see that SonarLint for Visual Studio needs/creates a “.sonarlint” folder in the Git repository with the following files:
- {project}/{profile}/SonarLint.xml
- .slconfig
- .{project}{profile}.ruleset
- sonar.settings.json
Next to these files, every project in the solution, needs to reference the “SonarLint.xml” in the “.sonarlint” folder. I found this here: SonarLint.xml is added to every VS project? Where can I read about it? - Stack Overflow
Now my collegue is using Rider. There we notice that Rider SonarLint Connected Mode does not create this “.sonarlint” folder in the Git repository, but that it creates it’s local files in “.idea” folder, which is ignored in our .gitignore file. The format of these files also seems to be different then the ones Visual Studio creates (no .slconfig, .ruleset)
And when I take a look at Visual Studio Code, there it seems to be also different (.sonarcloud.properties file).
So my question is, what is the point of checking in the Visual Studio files when other editors use their own way of setting this up? Should we just ignore those SonarLint files from the repository and let every developer setup SonarLint as they wish?