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

Table of Contents

Get Coding Rules Activated in a Quality Profile

DescriptionGet the list of coding rules activated in a quality profile

URL

/api/profiles

MethodGET

Security

None

Examples

  1. Get all the coding rules activated on the default java quality profile:



  2. Get all the coding rules activated on the java quality profile 'Common rules':

Parameters

Parameter

Description

Required

Default Value

Value

language

Project language

Yes

None

java

name

Profile name. If not set, the default profile for the selected language is used.

No

None

Sonar%20way

rule_repositories

Comma-separated list of rules repository keys.

No

None

pmd,findbugs

rule_severities

Comma-separated list of rule severities.
Possible values are BLOCKER, CRITICAL, MAJOR, MINOR, INFO.

No

None

BLOCKER,CRITICAL

formatResponse formats: xml or jsonNoxml 

Backup a Quality Profile

Available since Sonar 3.1

Icon

 

DescriptionBackup a quality profile

URL

/api/profiles/backup

MethodGET
Security

Requires Global Administrator role

Examples

  1. Backup the default java quality profile:

     

     

  2. Backup the java quality profile 'Sonar%20way':

Parameters

Parameter

Description

Required

Default Value

Value

language

Project language

Yes

None

java

name

Profile name. If not set, the default profile for the selected language is used.

No

None

Sonar%20way

formatResponse formats: xml or jsonNoxml 

Restore a Quality Profile

Available since Sonar 3.1

Icon

 

DescriptionRestore a quality profile

URL

/api/profiles/restore

MethodPOST
Security

Requires Global Administrator role

Examples

  1. Restore the quality profile defined in ???????:

  • No labels