I am using SonarLint in my .NET core project. When integrating projects with SonarLint, the following files are generated inside a .sonarlint folder:
<SonarQubeProject>CSharp.ruleset<Solution>.slconfigThe .ruleset file contains the rules for sonarlint and sonarqube, so I'm already keeping this file in source control.
But what about the .slconfig? Should I keep this file in source control or should I exclude it? (add it to .gitignore in my case)
This file should be included in source control.
This file controls synchronization between source code and SQ. It includes among others:
ServerUri pointing to the SonarQube server to which this project is bound to.ProjectKey with the key of the project in the SQ serverProfileKey that is an identifier for the Quality profile selected in the server.Source: This post from the SonarSource community: SonarLint source control
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With