aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2018-08-16 11:53:51 +0200
committersonartech <sonartech@sonarsource.com>2018-09-19 10:51:40 +0200
commit236840051693278ab5438711a81ad13c47c4656f (patch)
tree05b4487cd9c88746a4a1e5b71c906bbf4ce8389f /server
parent1499510eb4a8bfbc1d90f5f09a321704e587e42e (diff)
downloadsonarqube-236840051693278ab5438711a81ad13c47c4656f.tar.gz
sonarqube-236840051693278ab5438711a81ad13c47c4656f.zip
SONAR-11137 Fix ITs and add documentation
Diffstat (limited to 'server')
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/source/ws/LinesAction.java1
-rw-r--r--server/sonar-server/src/main/resources/org/sonar/server/source/ws/lines-example.json10
2 files changed, 6 insertions, 5 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/source/ws/LinesAction.java b/server/sonar-server/src/main/java/org/sonar/server/source/ws/LinesAction.java
index d4a0ab06ad0..bd5857ba362 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/source/ws/LinesAction.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/source/ws/LinesAction.java
@@ -86,6 +86,7 @@ public class LinesAction implements SourcesWsAction {
"<li>Line hits from coverage</li>" +
"<li>Number of conditions to cover in tests</li>" +
"<li>Number of conditions covered by tests</li>" +
+ "<li>Whether the line is new</li>" +
"</ol>")
.setSince("5.0")
.setInternal(true)
diff --git a/server/sonar-server/src/main/resources/org/sonar/server/source/ws/lines-example.json b/server/sonar-server/src/main/resources/org/sonar/server/source/ws/lines-example.json
index 3cdfdd6a4e3..32c2b3ab91b 100644
--- a/server/sonar-server/src/main/resources/org/sonar/server/source/ws/lines-example.json
+++ b/server/sonar-server/src/main/resources/org/sonar/server/source/ws/lines-example.json
@@ -1,10 +1,10 @@
{
"sources": [
- {"line": 20, "code": "<span class=\"k\">package </span>org.sonar.check;", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5"],
+ {"line": 20, "code": "<span class=\"k\">package </span>org.sonar.check;", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5", "isNew":false],
{"line": 21, "code":"", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5"],
- {"line": 22, "code":"<span class=\"k\">public </span><span class=\"k\">enum </span><span class=\"sym-922 sym\">Priority</span> {", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5"],
- {"line": 23, "code":" <span class=\"cppd\">/**</span>", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5"],
- {"line": 24, "code":"<span class=\"cppd\"> * WARNING : DO NOT CHANGE THE ENUMERATION ORDER</span>", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5"],
- {"line": 25, "code":"<span class=\"cppd\"> * the enum ordinal is used for db persistence</span>", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5"]
+ {"line": 22, "code":"<span class=\"k\">public </span><span class=\"k\">enum </span><span class=\"sym-922 sym\">Priority</span> {", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5", "isNew":true],
+ {"line": 23, "code":" <span class=\"cppd\">/**</span>", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5", "isNew":false],
+ {"line": 24, "code":"<span class=\"cppd\"> * WARNING : DO NOT CHANGE THE ENUMERATION ORDER</span>", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5", "isNew":false],
+ {"line": 25, "code":"<span class=\"cppd\"> * the enum ordinal is used for db persistence</span>", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5", "isNew":false]
]
}