SonarQube Enterprise Edition Version 18.104.22.168448
SonarLint Version 22.214.171.12402
.editorconfig rules don’t sync or not being recognized by SonarQube. Sonarlint configurations and custom rules are all saved in the .editorconfig file. Sonarqube now only uses Roysln rulesets. Does SonarQube support .editorconfig rules?
Hi @aalali. Welcome to the community!
SonarQube itself doesn’t know anything about either rulesets or .editorconfig files.
If you are talking about configuration in the IDE, then that is handled by SonarLint for Visual Studio (“SLVS”).
If you are talking about build-time analysis with the analysis results being pushed to SonarQube, then that is handled by the SonarScanner for MSBuild (“S4MSB”).
Currently SLVS and S4MSB only work with rulesets. They don’t handle .editorconfig files.
What are you trying to do?
@duncanp you have answered my question, thanks!
SonarLint supresses, through the IDE, sonar rules or change severity and save them into .editorconfig as the first option. It doesn’t change the main sonar ruleset .sonarlint\atlascorecsharp.ruleset. It seems that analyzers are utlizing .editorconfig heavly (Roysln, ReSharper, and Sonar(Lint)), I encourage SonarQube to parse .editorconfig as well.