Customizing Quality Profiles

Overview

Quality Profiles determine the list of rules used in a scan. Quality Profiles can be customized by adding and removing rules, setting severities, and changing scope where applicable.

To make a custom Quality Profile, you can create a new profile or copy one of our default profiles from the list as a starting point.

Note: Changes CANNOT be made to default profiles, only to custom profiles. If you are using a default profile and would like to remove a rule, please make a copy of the default profile and make your changes to the copied profile.

Creating a Quality Profile

To customize the Quality Profile, follow the steps below:

  1. Access the Quality Profile menu from the Organization’s home page.

    Quality Profile menu
  2. Use the Create button at the top right of the page to create a new Quality Profile.

    Create Quality Profile
  3. Enter the Name and choose a Language for the profile. Additionally, you can either extend/copy an existing Quality Profile or create a blank Quality Profile..

New Quality Profile
  1. Click Create.

    Create New Quality Profile
  2. Click on the more icon and then click on Copy to copy a default profile.

    Copy a Default Profile
  3. Once you have chosen a name for your profile, click the Activate More button to begin your customization.

    Activate More
  4. Use the filters on the left to determine the rules you want to see, and click the Activate/Deactivate button to add/remove them from your quality profile.

    Activate/Deactivate
  5. You can bulk activate/deactivate rules for your profile using the Bulk Change button.

    Bulk Change option
  6. When activating a rule, you will be given the option to change its severity and any other parameters the rule may have.

Activate

Example: You can update the severity of the rule to Major/Critical/Minor/Blocker/Info

To use the rule mentioned above, the parameter minimumCommentDensity needs to be set to a value. The minimum value is 25. If you use the value of 35 as an example, the density of comment lines of 35 will be considered.

Set the value for suppressUnitTestViolations. Default: The Default is actually 'Display' and it will display the unit test violations suppression, means, the issues will get displayed in Test Classes for the parameters. Display: Displays the unit test violations suppression. Suppress: Unit test violations will be suppressed.

Updating Quality Profiles

To make sure that Quality Profiles used on CodeScan projects are up to date, you can find information about recently added rules by navigating to Organization → Quality Profiles:

Quality Profiles

You can review updates and assign new rules to your Quality Profiles to make sure your code is clean and secure.

Also, on the right side, the list of recently deprecated rules is available. We recommended you remove these from the Quality Profiles used:

Deprecated Rules

Last updated

Was this helpful?