In SonarQube we have configured the analysis of the files generated by using sonar.scm.exclusions.disabled=true, but using Visual Studio we have the SonarAnalyzer.Csharp and we want it to also analyze the files generated. We try creating a .editorConfig with generated_code=false but this active all other analyzers like Stylecop but the SonarAnalyzer is not activated. Could you tell us how to activate the analysis of the generated code for the SonarAnalyzer?
@eugeniolt there isn’t currently a Sonar-specific way to exclude C# files or folders from analysis.
It is on the roadmap for 2022 for SonarLint for VS.
As you are using the SonarAnalyzer.CSharp NuGet package directly, you can use standard VS Roslyn features to configure the analysis. You might be able to use an .editorconfig file to disable rules for specific set of files or folders.