Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

Image Removed

SonarQube its quality. SonarQube is shipped with 6 default tabs4 default perspectives (Coverage, Duplications, Issues, Source). Depending on the plugins you have that are installed, other tabs perspectives may be displayedavailable.

Image Added

Source

...

This tab perspective displays the source code with highlighted syntax as well as the main measures of the file.

Image RemovedImage Added

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 Since version 3.6, (on Java files only), usage and declaration of variables and methods are highlighted (limited to class scope). When clicking on a variable or on a method name, it is possible to see its declaration and usage.

  • Where in the current file is this variable declared? Where is it used?

    Image Added
    Image Added

  • Where in the current file is this method declared? Where is it used?

    Image Added

Coverage

This perspective displays the source code decorated with information about code coverage (by unit tests and/or integration tests).

...


The features described below are available since version 3.5.When clicking on a figure displayed in the first column, the unit tests covering this specific line are listed:

Image RemovedImage Added

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:

Image Removed

Issues Tab

The Issues tab Image Added

Anchor
issues_tab
issues_tab
Issues

This perspective 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

...

This perspective displays every duplicated chunk of code within a class and the name of the other class it is duplicated with.
Image Removed See Duplications for more information.

Dependencies Tab

...

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.
Image RemovedImage Added

Anchor
viewingUnitTests
viewingUnitTests

...

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

Image Removed

Source

...

This perspective displays the source code of the unit test file:.

Image RemovedImage Added

Tests

...

This perspective displays the result of the unit tests belonging to the unit test class.In  In case of a failure or an error, the reason is displayed:

Image Removed

Since version 3.5, it Image Added

It is also possible to see the mapping of unit tests and covered code. The objective is to answer the following questions:

  • 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

...

This perspective displays issues on unit tests: