Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
iconfalse
titleTable of Contents
Table of Contents

The Measures service provides a way to quickly execute quickly execute all kinds of queries on project measures. You can for example get:

  • the recently inspected projects
  • the projects with blocker and critical issues
  • the projects with bad coverage on added/changed code within the 10 past days

...

The Measures service can be accessed through the top bar.

Watch the following screencast to get an overview of the Measures service:

Image Removed

...

Widget Connector
height140
width250
urlhttp://vimeo.com/85810592

Search

To add criteria to the search query, click on More criteriaCriteria and select a criterion. As many criteria as you wish can be added.

Set the criteria and click on the Search button to display the results.

Image Removed

...

titleThe first 1,000 results are retrieved

Note that you can use the tab key to navigate through the criteria.
 

Image Added

Info

Note that only the first 1,000 results of the query are retrieved.

Available Criteria

Criteria

Description

What?

Drop-down list to select the types Components

Types of component to search for: projects, views, files, developers, etc.

Age

Same as the Date criterion but a period has to be set instead of a date.
Example: only display components that have not been analyzed within the last 30 days.

AlertFilter by alert level (Error | Warning | Ok).
Available since SonarQube 3.7. 

Components of project

If the What? Components criterion is empty, only direct children will be displayed.
If the What? Components criterion is not empty, all the sub-components (of any sub-levels) of the What? Components type will be displayed.

Date

Filters components based on the last build analysis date.
Format: YYYY-MM-DD (2012-01-31)
Example: only display components that have been analyzed since January 31st, 2012.

Favourites Favorites only

If checked, only components flagged as favorites will be displayed.

Key contains

Filters components whose key contains a given string.

Language

Drop-down list to select the languages to filter on.

Last analysis

Same as the Date criterion but a period has to be set instead of a date.
Example: only display components that have not been analyzed within the last 30 days.

MetricFilters components to those where a specific measure is greater than or less than a certain threshold.
Up to three "Metric" criteria can be defined.

Name contains

Filters components whose name contains a given string.

Quality GateFilter by quality gate status (Error | Warning | Ok). Was labelled Alert prior to SonarQube 4.3.

Results Display Configuration

The results can be displayed either as list or treemap. The display can be changed through the Display as link on the top right corner:

Image Removed

Then by By clicking on Change Columns (for list display) or Change Treemap (for treemap display), display details can be configured: list of measures (value or variation), ordering of the columns, sort, etc.

...

To save a search query as a filter, click on the Save  Save As link on the top right corner.

To create a shared filter, check the 

Displaying Filter

Filters (filters you created or that are shared by other users) can be displayed on dashboards in the following dedicated widgets: Measure Filter as List or Measure Filter as Treemap.

Image Removed

Image Removed

on global dashboards or project dashboards. Several visualizations are available:

  • List
  • Treemap
  • Bubble Chart (since SonarQube 4.2)
  • Histogram (since SonarQube 4.2)
  • Donut Chart (since SonarQube 4.2)

Image Added


Measures Filter as List:

Image Added

 

Measures Filter as Treemap:

Image Added

 

Measures Filter as Bubble Chart:

Image Added


Measures Filter as Pie Chart:

Image Added


Measures Filter as Histogram:

Image Added

 

Measures Filter as Cloud:

Image Added
 


Managing Filters

Once several filters have been created, it becomes necessary to manage them: edit, copy, delete, share, flag as favorite, etc. To do so, click on the Manage link left-hand side button in the left menusearch bar:

Image Removed

Image Added

and click on Manage:

Image Added