.editorconfig is not being recognized by SonarQube

SonarQube Enterprise Edition Version 7.9.1.27448
SonarLint Version 4.17.0.14702

Issue:
.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?

2 Likes

@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.

2 Likes