Create file named connectedMode.json file instead of ProjectName.json file for better maintenance

Please provide

  • Operating system: Windows 11
  • SonarLint plugin version: 4.7.0
  • Programming language you’re coding in: C#, Java
  • Is connected mode used:Yes
    • Connected to SonarCloud or SonarQube (and which version): Not sure

And a thorough description of the problem / question: ProjectName.json is bit difficult to maintain as project name can change anytime for some reason. connectedMode.json is generic name and it will be easy to maintain. Right now, I rename it for every project and commit to version control. It would be great if you guys can make this change.

Hi there @nithinbanaru,

Apologies for a (very) late reply :grimacing: Just to explain the rationale of the current implementation, when working with .NET projects we wanted to make the shared Connected Mode configuration work seamlessly between IDEs (Visual Studio, Rider, and VS Code) in this case. Since, in SonarQube for IDE: Visual Studio it is possible to define a different binding per Solution, the file needs to be named like SolutionName.json so that we know which Solution is the binding for.

If your whole team is only using VS Code for development, you can safely name all the files connectedMode.json and the feature should work just the same. To provide this option automatically during the configuration export could be a nice improvement for the future.

I hope that helps,
Sophio