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

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 30 Next »

Table of Contents

To configure the settings for a project, it is necessary to connect as an administrator on this project (See Security).

Adding a Project

Adding a project to Sonar 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 in Sonar by clicking on Project Deletion in the left menu.

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

Updating Project Key

Since Sonar 3.2, the project key can be updated. Go to Configuration > Update Key:

 

Setting Quality Profile

As Sonar 3.3 enables multi-language project analysis, project administrators can select which quality profile to use on their projects and this for each language. Go to Configuration > Quality Profiles:

TODO: add screenshot

Excluding Resources

It is possible to exclude source code from being analyzed:

  • Since Sonar 3.3, go to Configuration > Settings > Exclusions and set the 'sonar.exclusions' property.
  • For Sonar versions prior to 3.3, click on Exclusions in the left menu and set the 'sonar.exclusions' property.
Since Sonar 3.3, it is also possible to:
  • Exclude tests file from being taken into account: go to Configuration > Settings > Exclusions and set the 'sonar.tests.exclusions' property
  • Set global exclusions that will apply to all the projects: go to Configuration > General Settings > Exclusions and set the 'sonar.global.exclusions' and 'sonar.global.tests.exclusions' properties.

To exclude files, you can use wildcard patterns. Example: **/*Bean.java to exclude all classes ending with the Bean word. Full documentation is directly available on the Exclusions administration Sonar web interface.

Coding rules

Icon

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

Customizing Links

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

They are two types of links:

Those links are retrieved from the projet POM:

  • Home: <url>
  • Continuous integration: <ciManagement><url>
  • Issue tracker: <issueManagement><url>
  • Sources: <scm><url>
  • Developer connection: <scm><developerConnection>

Non-Maven project

Icon

For non-Maven project, there is no way to feed those links. See SONARPLUGINS-1883.

They 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 trough 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 Global Settings for that project.

On your project, click on Settings in the left menu.

  • No labels