Versions Compared

Key

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

...

Code Block
titleJSON
languagejavascript
{
  "backup":
  "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
   <!-- Generated by Sonar -->
   <profile>
     <name>Sonar for Sonar</name>
     <language>java</language>
     <rules>
       <rule>
         <repositoryKey>checkstyle</repositoryKey>
         <key>com.puppycrawl.tools.checkstyle.checks.TodoCommentCheck_1296413157</key>
         <priority>INFO</priority>
         <parameters>
           <parameter>
             <key>format</key><value>TODO</value>
          </parameter>
        </parameters>
      </rule>
      ...
    </rules>
      ...
    </alerts>
  </profile>"
}

Parameters

Parameter

Description

Required

Default Value

Example 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

format

Response format can be set through:

  • Parameter format: xml | json
  • Or the 'Accept' property in the HTTP header:
    • Accept:text/xml
    • Accept:application/json
If nothing is set, json is used.
NoNonejson

...