aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2017-10-27 10:48:29 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2017-10-27 10:48:29 +0200
commit6f7cd580e4ca4760763853d64783a39caa090237 (patch)
treef79165638f8d0eb26bfc7f8af9d90e3fbce780c3
parenta7945437d456d5c1d0bfe58f38a53f4239f109e1 (diff)
downloadsonarqube-6f7cd580e4ca4760763853d64783a39caa090237.tar.gz
sonarqube-6f7cd580e4ca4760763853d64783a39caa090237.zip
Add issue flows location in api/issues/search example
-rw-r--r--server/sonar-server/src/main/resources/org/sonar/server/issue/ws/search-example.json47
1 files changed, 38 insertions, 9 deletions
diff --git a/server/sonar-server/src/main/resources/org/sonar/server/issue/ws/search-example.json b/server/sonar-server/src/main/resources/org/sonar/server/issue/ws/search-example.json
index 6f0828e593a..59325f9a192 100644
--- a/server/sonar-server/src/main/resources/org/sonar/server/issue/ws/search-example.json
+++ b/server/sonar-server/src/main/resources/org/sonar/server/issue/ws/search-example.json
@@ -15,18 +15,14 @@
"severity": "MINOR",
"message": "'3' is a magic number.",
"line": 81,
- "hash":"a227e508d6646b55a086ee11d63b21e9",
- "textRange": {
- "startLine": 81,
- "endLine": 81,
- "startOffset": 0,
- "endOffset": 134
- },
+ "hash": "a227e508d6646b55a086ee11d63b21e9",
"author": "Developer 1",
"effort": "2h1min",
"creationDate": "2013-05-13T17:55:39+0200",
"updateDate": "2013-05-13T17:55:39+0200",
- "tags": ["bug"],
+ "tags": [
+ "bug"
+ ],
"type": "RELIABILITY",
"comments": [
{
@@ -48,6 +44,40 @@
],
"actions": [
"comment"
+ ],
+ "textRange": {
+ "startLine": 2,
+ "endLine": 2,
+ "startOffset": 0,
+ "endOffset": 204
+ },
+ "flows": [
+ {
+ "locations": [
+ {
+ "textRange": {
+ "startLine": 16,
+ "endLine": 16,
+ "startOffset": 0,
+ "endOffset": 30
+ },
+ "msg": "Expected position: 5"
+ }
+ ]
+ },
+ {
+ "locations": [
+ {
+ "textRange": {
+ "startLine": 15,
+ "endLine": 15,
+ "startOffset": 0,
+ "endOffset": 37
+ },
+ "msg": "Expected position: 6"
+ }
+ ]
+ }
]
}
],
@@ -85,5 +115,4 @@
"avatar": "ab0ec6adc38ad44a15105f207394946f"
}
]
-
}