问题
I downloaded the SonarLint code on Github and would like to try in the company projects that I work by analyzing existing code. I wonder how I could create a standard configuration file with the rules that I want to evaluate the solution to analyze the projects. Is there a practical example?
回答1:
To do this, you don't have to start from the source code, you can use the VSIX package from the Visual Studio Gallery. After installing it, just right click on the Project/References/Analyzers node in the Solution Explorer, and edit the active rule set file. SonarLint is using Roslyn, so enabling and disabling rules can be done in the standard integrated way in Visual Studio.
来源:https://stackoverflow.com/questions/32298050/is-there-some-graphical-way-to-create-my-own-configuration-file-on-sonarlint