Chapter 14. Making SonarQube fit your needs

 

This chapter covers

  • Working with filters
  • SonarQube notifications
  • The power of SonarQube dashboards
  • Exploring the rest of global configuration

In most books that talk about software systems or tools, the parts that cover configuration or administration topics are considered boring and are usually skipped by readers. You’re probably thinking the same about this chapter too, but don’t pull the trigger yet.

SonarQube’s default configurations are well thought out, but you can get much more out of them by adjusting some of the options we’ll show you in this chapter. We aren’t going to teach you only the “how”—instead, we’ll focus on explaining the “why.” You’ll learn through real-world scenarios when and why you need to modify SonarQube configurations or use an administration feature.

We’ll start by discussing filters. You might have already figured out that the default project list on SonarQube’s home page is actually a filter. You can create as many as you want, depending on your needs, and display their results in your dashboards. The first section of this chapter explains how to master SonarQube filters.

Then we’ll look at global dashboards. They can show information on the highest level. You’ll learn the purpose of default dashboards and how to share yours with other users (if you belong to the administrators group) or add theirs to your startup page. For normal users, dashboards are private, with no option to change that.

14.1. Exploring filters

14.2. One size doesn’t fit all: managing global dashboards

14.3. Getting notified by SonarQube

14.4. Adjusting global settings

14.5. Housekeeping

14.6. Summary