diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-05-02 12:30:23 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-05-02 12:30:23 +0200 |
commit | 22855a6da7c5f8653594585ee680b29a48776bda (patch) | |
tree | 9f8d35683857655721d7aa1d4af87dfef5862120 /sonar-server/src/main/resources | |
parent | 969f9161589278b2e222cc31b90f441a0575a453 (diff) | |
download | sonarqube-22855a6da7c5f8653594585ee680b29a48776bda.tar.gz sonarqube-22855a6da7c5f8653594585ee680b29a48776bda.zip |
SONAR-5111 Complete documentation for "api/profiles" WS
Diffstat (limited to 'sonar-server/src/main/resources')
-rw-r--r-- | sonar-server/src/main/resources/org/sonar/server/issue/ws/example-show.json | 56 | ||||
-rw-r--r-- | sonar-server/src/main/resources/org/sonar/server/qualityprofile/ws/example-list.json | 12 |
2 files changed, 68 insertions, 0 deletions
diff --git a/sonar-server/src/main/resources/org/sonar/server/issue/ws/example-show.json b/sonar-server/src/main/resources/org/sonar/server/issue/ws/example-show.json new file mode 100644 index 00000000000..9a65cddc9a9 --- /dev/null +++ b/sonar-server/src/main/resources/org/sonar/server/issue/ws/example-show.json @@ -0,0 +1,56 @@ +{ + "issue": { + "key": "dc94c283-4260-48c8-a0d3-a32f4b1cabe6", + "rule": "squid:S1596", + "ruleName": "Collections.emptyList(),emptyMap() and emptySet() should be used instead of Collections.EMPTY_LIST, EMPTY_MAP and EMPTY_SET", + "line": 36, + "message": "Replace \"Collections.EMPTY_LIST\" by \"Collections.emptyList()\".", + "status": "OPEN", + "severity": "MAJOR", + "author": "Developer 1", + "debt": "2min", + "creationDate": "2014-02-14T23:04:29+0100", + "fCreationDate": "Feb 14, 2014 11:04 PM", + "updateDate": "2014-03-04T23:03:44+0100", + "fUpdateDate": "Mar 4, 2014 11:03 PM", + "fUpdateAge": "about a month", + "component": "com.sonarsource.cobol:cobol-preprocessor:src/main/java/com/sonarsource/cobol/pp/CobolPreprocessor.java", + "componentLongName": "src/main/java/com/sonarsource/cobol/pp/CobolPreprocessor.java", + "componentQualifier": "FIL", + "project": "com.sonarsource.cobol:cobol", + "projectName": "SonarSource :: Cobol", + "subProjectName": "SonarSource :: Cobol :: Preprocessor", + "subCharacteristic": "Readability", + "characteristic": "Maintainability", + "transitions": [ + "confirm", + "resolve", + "falsepositive" + ], + "actions": [ + "comment", + "assign", + "assign_to_me", + "plan", + "set_severity", + "link-to-jira" + ], + "comments": [ ], + "changelog": [ + { + "creationDate": "2014-02-14T23:04:29+0100", + "fCreationDate": "Feb 14, 2014 11:04 PM", + "diffs": [ + "Created" + ] + }, + { + "creationDate": "2014-03-04T23:03:44+0100", + "fCreationDate": "Mar 4, 2014 11:03 PM", + "diffs": [ + "Technical Debt changed to 2min" + ] + } + ] + } +} diff --git a/sonar-server/src/main/resources/org/sonar/server/qualityprofile/ws/example-list.json b/sonar-server/src/main/resources/org/sonar/server/qualityprofile/ws/example-list.json new file mode 100644 index 00000000000..21f3b6364b0 --- /dev/null +++ b/sonar-server/src/main/resources/org/sonar/server/qualityprofile/ws/example-list.json @@ -0,0 +1,12 @@ +[ + { + "name": "Sonar way with Findbugs", + "language": "java", + "default": false + }, + { + "name": "Sonar way", + "language": "java", + "default": false + } +] |