Export and import of analysis scope settings

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube Developer Edition Version 10.1 (build 73491)
    SonarScanner 4.8.0.2856
  • how is SonarQube deployed: zip, Docker, Helm
    zip
  • what are you trying to achieve
    Easily share exclusions among developers all running separate instances on their machines
  • what have you tried so far to achieve this
    Read the documentation

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

I’m just getting started with SonarQube in my company (I’m sort of the trailblazer on this). I’ve set up some exclusions in my project’s Analysis Scope settings. When one of my teammates wants to start analyzing the code, I’d like to be able to quickly configure his project settings with these exclusions.

I’ve been looking for some UI controls (button, menu, etc.) to export and import these, but haven’t found anything. I’ve search the documentation, but come up empty. Is there a way to do this?

Hi,

Welcome to the community!

The intention is not that each developer would run SonarQube locally. Instead, SonarQube should be a central resource that’s only updated by the central CI job.

What you run locally is SonarLint, which is an always-free extension for most popular IDEs.

Once you’ve installed SonarLint in your IDE, you can connect it to your central SonarQube, where you’ve configured your exclusions, rules &etc, to have those settings propagated locally and automatically when they’re updated.

Doing it this way means far less configuration and far smoother process all around.

 
HTH,
Ann