]> source.dussan.org Git - sonarqube.git/commitdiff
Add issue flows location in api/issues/search example
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 27 Oct 2017 08:48:29 +0000 (10:48 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 27 Oct 2017 08:48:29 +0000 (10:48 +0200)
server/sonar-server/src/main/resources/org/sonar/server/issue/ws/search-example.json

index 6f0828e593aad311115f291f1086893b69d83292..59325f9a192c619b9de60641c9f5088a6ec06b30 100644 (file)
       "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": [
         {
       ],
       "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"
+            }
+          ]
+        }
       ]
     }
   ],
       "avatar": "ab0ec6adc38ad44a15105f207394946f"
     }
   ]
-
 }