Versions Compared

Key

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

...

Project administration is accessible through the "Configuration" menu.

Image RemovedImage Added

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

...

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

 Image RemovedImage Added

Setting Quality Profiles

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

Image RemovedImage Added

Excluding Files

...

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

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

    Code Block
    titleExamples
    languagebash
    # Exclude all classes ending by 'Bean'
    # Matches org.sonar.api.MyBean.java, org.sonar.util.MyOtherBean.java, etc.
    sonar.exclusions=**/*Bean.java
     
    # Exclude all classes in the 'org.sonar' package
    # Matches org.sonar.MyClass.java, org.sonar.MyOtherClass.java
    # But does not match org.sonar.util.MyClassUtil.java
    sonar.exclusions=org/sonar/*.java
     
    # Exclude all classes in the 'org.sonar' package and its children
    # Matches org.sonar.MyClass.java, org.sonar.MyOtherClass.java, org.sonar.util.MyClassUtil.java
    sonar.exclusions=org/sonar/**/*.java



  • Absolute path:

    Code Block
    titleExamples
    languagebash
    # Exclude all the *.cs files included in /path_to_my_project/myProject/src/generated and its subdirectories
    sonar.exclusions=file:/path_to_my_project/myProject/src/generated/**/*.cs
     
    # Exclude all the java classes contained in a src/generated/java directory and its subdirectories
    sonar.exclusions=file:**/src/generated/java/**/*.java
    

...

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

Image RemovedImage Added

They are two types of links:

...