Thanks @Alexandre_Gigleux for sharing document and i have already gone through the documents from where i enabled the reportanalyzer to check which rule is taking time. I have already configured my project as per steps mentioned there. I also tried to exlcude the rule by using .editorconfig file #Suppress Rule
[*.{cs,vb}]
dotnet_diagnostic.S1481.severity = none
but i dont think so it working. Can you please suggest the next action on it.
Did you try to remove the rule from the Quality Profile in SonarQube?
Also, to figure out why the editorconfig file doesn’t work: did you place the editorconfig file in the correct directory? Could you provide the verbose logs for the build, please?
Also, we would be very interested in finding out more about your project, so that we can improve the performance of our rule.
I can’t change the Quality profile in Sonarqube as it is shared by multiple projects/team so it is not allwoed. I put the .editorconfig root of my project (i am not sure if this editorconfig works fine with .net 4.5 framework) with following entry
[*.{cs,vb}]
dotnet_diagnostic.S141.severity = none
any update please? I think editorconfig will not work with sonarLint locally but i am using sonarqube which will take the rules from there so not sure what other way to override rules which are used by SonarQube. I dont want to change in sonarQube profile
Starting in Visual Studio 2019 version 16.3, you can configure the severity of analyzer rules, or diagnostics , in an EditorConfig file, from the light bulb menu, and from the error list.
I am using MSBuild version = “16.11.1+3e40a09f8” , will editotconfig file override the rules from sonarqube as well? as per my understanding it is for sonarlint and override the rules locally.