Full documentation for SonarQube has moved to a new location: http://docs.sonarqube.org/display/SONAR

Versions Compared

Key

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

Table of Contents
maxLevel23

 

When drilling down from the project dashboard, the resource component viewer is the ultimate place to view detailed information on a given file (or unit test file) on different axes.

...

Source Code File

When drilling down into measures, you will eventually reach the file level and will be able to browse the source code.

...

SonarQube is shipped with 6 default tabs. Depending on the plugins you have installed, other tabs may be displayed.

Source Tab

This tab displays source code with highlighted syntax.

...

To display the new/modified source code or view the last committers, you need to install the SCM Activity Plugin.

Coverage Tab

The Coverage tab displays the source code decorated with information about code coverage (by unit tests and/or integration tests).

...

When selecting Per test > Covered lines in the second dropdown list, a third dropdown list appears. In this latter list, it is possible to select a specific unit test. Then, only lines covered by this unit test are displayed in the source code viewer:

Issues Tab

The Issues tab displays issues directly in the source code.

...

You can directly manage the issues: comment, assign, link to an action plan, etc. See the Issues documentation page for more details.

Anchor
tabduplications
tabduplications

Duplications Tab

The Duplications tab shows every duplicated chunk of code within a class and the name of the other class it is duplicated with.

See Duplications for more information.

Dependencies Tab

The Dependencies tab shows all incoming and outgoing dependencies on the file:

LCOM4 Tab

The LCOM4 tab shows blocks of code within a class that have tight relationship. Having more that one block here probably means that the class is assuming more than one responsibility.

Anchor
viewingUnitTests
viewingUnitTests

...

Unit Test File

When drilling down into unit tests execution measures, you will eventually reach the unit test level:

Source Tab

The Source tab displays the source code of the unit test file:

Tests Tab

The Tests tab displays the result of the unit tests belonging to the unit test class.

...

  • Which files are covered by a given unit test?
  • How many lines of code are covered by a given unit test?
  • Which lines are covered by a given unit test?
  • Which tests cover a given line of code?

Issues Tab

The Issues tab displays issues on unit tests:

...