Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 68 Next »

Table of Contents

Project administration is accessible through the "Configuration" menu.

Only project administrators can access project settings (See Security).

Adding a Project

Adding a project to SonarQube is not done through the web interface, but automatically when the project is analyzed for the first time.

Deleting a Project

You can delete a project by clicking on Project Deletion in the left menu.

Note that a service to delete several projects at the same time is available since version 3.2.

Updating Project Key

Since version 3.2, the project key can be updated (without losing the history on the project). Go to Configuration > Update Key:


Setting Quality Profiles

Project administrators can select which quality profile to use for each language on their project. Go to Configuration > Quality Profiles:

Excluding Files

It is possible to exclude files from being analyzed. Go to Configuration > Settings > Exclusions and set the sonar.exclusions property.

Since version 3.3, it is also possible to:
  • Exclude tests file from being analyzed: go to Configuration > Settings > Exclusions and set the sonar.tests.exclusions property
  • Set global exclusions that will apply to all the projects: go to Settings > General Settings > Exclusions and set the and properties.


Coding rules


If you want to exclude source code from being check against some coding rules, you can have a look at the Switch Off Violations plugin.

Since version 3.5, it is also possible to:

  • Set the files to be analyzed through the sonar.inclusions and sonar.test.inclusions properties. In this case, only these specific files will be analyzed.
  • Exclude some files from being checked against duplications. To do so, set the sonar.cpd.exclusions property (Configuration > Settings > Duplications).

There are two different ways to exclude/include files:

  • Fully qualified name of the component (see red frames below):

    For Java only, replace '.' package separator by '/' and add '.java' extension.


  • Absolute path:


Full documentation is available directly in the SonarQube web interface (Configuration > Settings > Exclusions).

Customizing Links

To add links to your project, click on Links in the left menu:

They are two types of links:

These links have to be defined in the analysis configuration file:

  • Home: sonar.links.homepage
  • Continuous integration:
  • Issue tracker: sonar.links.issue
  • Sources: sonar.links.scm
  • Developer connection: sonar.links.scm_dev

For Maven projects, these links are retrieved from the project POM:

  • Home: <url>
  • Continuous integration: <ciManagement><url>
  • Issue tracker: <issueManagement><url>
  • Sources: <scm><url>
  • Developer connection: <scm><developerConnection>
Setting a sonar.links.* property on a Maven project overrides the one above.
These links can be displayed on a:
  • Filter by adding the Link column
  • Dashboard by adding the Description widget

They can not be modified through the web interface.

Any link can be added through the web interface.

Those links can be displayed on a dashboard by adding the Description widget.

Configuring Plugins

Several plugins can be configured at project level to override the plugin's global settings.

  • No labels