@@ -20,6 +20,7 @@ | |||
package org.sonar.server.issue.ws; | |||
import com.google.common.io.Resources; | |||
import java.util.Date; | |||
import org.sonar.api.server.ws.Request; | |||
import org.sonar.api.server.ws.Response; | |||
@@ -72,6 +73,7 @@ public class AddCommentAction implements IssuesWsAction { | |||
"Since 6.3, the response contains the issue with all details, not only the added comment") | |||
.setSince("3.6") | |||
.setHandler(this) | |||
.setResponseExample(Resources.getResource(this.getClass(), "add_comment-example.json")) | |||
.setPost(true); | |||
action.createParam(PARAM_ISSUE) |
@@ -19,6 +19,7 @@ | |||
*/ | |||
package org.sonar.server.issue.ws; | |||
import com.google.common.io.Resources; | |||
import org.apache.commons.lang.BooleanUtils; | |||
import org.sonar.api.server.ws.Request; | |||
import org.sonar.api.server.ws.Response; | |||
@@ -52,8 +53,8 @@ public class AssignAction implements IssuesWsAction { | |||
.setDescription("Assign/Unassign an issue. Requires authentication and Browse permission on project") | |||
.setSince("3.6") | |||
.setHandler(this) | |||
.setResponseExample(Resources.getResource(this.getClass(), "assign-example.json")) | |||
.setPost(true); | |||
// TODO add example of response | |||
action.createParam(PARAM_ISSUE) | |||
.setDescription("Issue key") |
@@ -20,6 +20,7 @@ | |||
package org.sonar.server.issue.ws; | |||
import com.google.common.io.Resources; | |||
import java.util.Collection; | |||
import java.util.Date; | |||
import java.util.HashMap; | |||
@@ -123,6 +124,7 @@ public class BulkChangeAction implements IssuesWsAction { | |||
.setDescription("Bulk change on issues. Requires authentication and User role on project(s)") | |||
.setSince("3.7") | |||
.setHandler(this) | |||
.setResponseExample(Resources.getResource(this.getClass(), "bulk_change-example.json")) | |||
.setPost(true); | |||
action.createParam(PARAM_ISSUES) |
@@ -68,8 +68,8 @@ public class ChangelogAction implements IssuesWsAction { | |||
@Override | |||
public void define(WebService.NewController context) { | |||
WebService.NewAction action = context.createAction(ACTION_CHANGELOG) | |||
.setDescription("Display changelog of an issue<br/>." + | |||
"Require the 'Browse' permission on the project of the specified issue<br/>." + | |||
.setDescription("Display changelog of an issue.<br/>" + | |||
"Require the 'Browse' permission on the project of the specified issue.<br/>" + | |||
"Since 6.3, changes on effort are returning raw value in minutes, it doesn't return anymore the duration.") | |||
.setSince("4.1") | |||
.setHandler(this) |
@@ -20,6 +20,7 @@ | |||
package org.sonar.server.issue.ws; | |||
import com.google.common.io.Resources; | |||
import java.util.Objects; | |||
import java.util.function.Consumer; | |||
import java.util.function.Function; | |||
@@ -65,6 +66,7 @@ public class DeleteCommentAction implements IssuesWsAction { | |||
"Since 6.3, 'key' parameter has been renamed to %s", PARAM_COMMENT) | |||
.setSince("3.6") | |||
.setHandler(this) | |||
.setResponseExample(Resources.getResource(this.getClass(), "delete_comment-example.json")) | |||
.setPost(true); | |||
action.createParam(PARAM_COMMENT) |
@@ -19,6 +19,7 @@ | |||
*/ | |||
package org.sonar.server.issue.ws; | |||
import com.google.common.io.Resources; | |||
import java.util.Date; | |||
import org.sonar.api.issue.DefaultTransitions; | |||
import org.sonar.api.server.ws.Request; | |||
@@ -65,6 +66,7 @@ public class DoTransitionAction implements IssuesWsAction { | |||
"The transitions '" + DefaultTransitions.WONT_FIX + "' and '" + DefaultTransitions.FALSE_POSITIVE + "' require the permission 'Administer Issues'.") | |||
.setSince("3.6") | |||
.setHandler(this) | |||
.setResponseExample(Resources.getResource(this.getClass(), "do_transition-example.json")) | |||
.setPost(true); | |||
action.createParam(PARAM_ISSUE) |
@@ -20,6 +20,7 @@ | |||
package org.sonar.server.issue.ws; | |||
import com.google.common.io.Resources; | |||
import java.util.Objects; | |||
import java.util.function.Consumer; | |||
import java.util.function.Function; | |||
@@ -71,6 +72,7 @@ public class EditCommentAction implements IssuesWsAction { | |||
"Since 6.3, 'key' parameter has been renamed %s", PARAM_COMMENT) | |||
.setSince("3.6") | |||
.setHandler(this) | |||
.setResponseExample(Resources.getResource(this.getClass(), "edit_comment-example.json")) | |||
.setPost(true); | |||
action.createParam(PARAM_COMMENT) |
@@ -19,6 +19,7 @@ | |||
*/ | |||
package org.sonar.server.issue.ws; | |||
import com.google.common.io.Resources; | |||
import org.sonar.api.rule.Severity; | |||
import org.sonar.api.server.ws.Request; | |||
import org.sonar.api.server.ws.Response; | |||
@@ -46,6 +47,7 @@ public class SetSeverityAction implements IssuesWsAction { | |||
.setDescription("Change severity. Requires authentication and Browse permission on project") | |||
.setSince("3.6") | |||
.setHandler(this) | |||
.setResponseExample(Resources.getResource(this.getClass(), "set_severity-example.json")) | |||
.setPost(true); | |||
action.createParam(PARAM_ISSUE) |
@@ -20,6 +20,7 @@ | |||
package org.sonar.server.issue.ws; | |||
import com.google.common.base.MoreObjects; | |||
import com.google.common.io.Resources; | |||
import java.util.Collection; | |||
import java.util.Collections; | |||
import java.util.List; | |||
@@ -49,12 +50,13 @@ public class SetTagsAction implements IssuesWsAction { | |||
@Override | |||
public void define(WebService.NewController controller) { | |||
NewAction action = controller.createAction(ACTION_SET_TAGS) | |||
.setHandler(this) | |||
.setPost(true) | |||
.setSince("5.1") | |||
.setDescription("Set tags on an issue. <br/>" + | |||
"Requires authentication and Browse permission on project<br/>" + | |||
"Since 6.3, the parameter 'key' has been replaced by '%s'", PARAM_ISSUE); | |||
"Requires authentication and Browse permission on project<br/>" + | |||
"Since 6.3, the parameter 'key' has been replaced by '%s'", PARAM_ISSUE) | |||
.setResponseExample(Resources.getResource(this.getClass(), "set_tags-example.json")) | |||
.setHandler(this); | |||
action.createParam(PARAM_ISSUE) | |||
.setDescription("Issue key") | |||
.setSince("6.3") |
@@ -19,6 +19,7 @@ | |||
*/ | |||
package org.sonar.server.issue.ws; | |||
import com.google.common.io.Resources; | |||
import org.sonar.api.rules.RuleType; | |||
import org.sonar.api.server.ws.Request; | |||
import org.sonar.api.server.ws.Response; | |||
@@ -46,6 +47,7 @@ public class SetTypeAction implements IssuesWsAction { | |||
.setDescription("Change type of issue, for instance from 'code smell' to 'bug'. Requires authentication and Browse permission on project.") | |||
.setSince("5.5") | |||
.setHandler(this) | |||
.setResponseExample(Resources.getResource(this.getClass(), "set_type-example.json")) | |||
.setPost(true); | |||
action.createParam(PARAM_ISSUE) |
@@ -0,0 +1,100 @@ | |||
{ | |||
"issue": { | |||
"key": "AVibidgv1LF0E-ru2DVv", | |||
"rule": "squid:S2301", | |||
"severity": "MAJOR", | |||
"component": "org.sonarsource.sonarlint.intellij:sonarlint-intellij:src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"componentId": 87163, | |||
"project": "org.sonarsource.sonarlint.intellij:sonarlint-intellij", | |||
"line": 78, | |||
"textRange": { | |||
"startLine": 78, | |||
"endLine": 78, | |||
"startOffset": 14, | |||
"endOffset": 39 | |||
}, | |||
"flows": [], | |||
"status": "CONFIRMED", | |||
"message": "Provide multiple methods instead of using \"modal\" to determine which action to take.", | |||
"effort": "15min", | |||
"debt": "15min", | |||
"assignee": "john.smith", | |||
"author": "john.smith@email.com", | |||
"tags": [ | |||
"design" | |||
], | |||
"transitions": [ | |||
"unconfirm", | |||
"resolve", | |||
"falsepositive", | |||
"wontfix" | |||
], | |||
"actions": [ | |||
"comment", | |||
"assign", | |||
"set_tags", | |||
"set_type", | |||
"assign_to_me", | |||
"set_severity" | |||
], | |||
"comments": [ | |||
{ | |||
"key": "AVmDRx8Zm-z8OYZYRSxo", | |||
"login": "jane.doo", | |||
"htmlText": "Please fix this", | |||
"markdown": "Please fix this", | |||
"updatable": true, | |||
"createdAt": "2017-01-09T13:49:53+0100" | |||
} | |||
], | |||
"creationDate": "2016-11-25T13:50:24+0100", | |||
"updateDate": "2017-01-09T13:51:12+0100", | |||
"type": "CODE_SMELL" | |||
}, | |||
"components": [ | |||
{ | |||
"id": 87163, | |||
"key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij:src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"uuid": "AVfTIlxMwczdZ2UaLhnt", | |||
"enabled": true, | |||
"qualifier": "FIL", | |||
"name": "ServerIssueUpdater.java", | |||
"longName": "src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"path": "src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"projectId": 23498, | |||
"subProjectId": 23498 | |||
}, | |||
{ | |||
"id": 23498, | |||
"key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij", | |||
"uuid": "8b745480-b598-4e34-af4a-cb2de1808e50", | |||
"enabled": true, | |||
"qualifier": "TRK", | |||
"name": "SonarLint for IntelliJ IDEA", | |||
"longName": "SonarLint for IntelliJ IDEA" | |||
} | |||
], | |||
"rules": [ | |||
{ | |||
"key": "squid:S2301", | |||
"name": "Public methods should not contain selector arguments", | |||
"lang": "java", | |||
"status": "READY", | |||
"langName": "Java" | |||
} | |||
], | |||
"users": [ | |||
{ | |||
"login": "john.smith", | |||
"name": "John Smith", | |||
"email": "john.smith@email.com", | |||
"active": true | |||
}, | |||
{ | |||
"login": "jane.doo", | |||
"name": "Jane Doo", | |||
"email": "jane.doo@mail.net", | |||
"active": true | |||
} | |||
] | |||
} |
@@ -0,0 +1,100 @@ | |||
{ | |||
"issue": { | |||
"key": "AVibidgv1LF0E-ru2DVv", | |||
"rule": "squid:S2301", | |||
"severity": "MAJOR", | |||
"component": "org.sonarsource.sonarlint.intellij:sonarlint-intellij:src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"componentId": 87163, | |||
"project": "org.sonarsource.sonarlint.intellij:sonarlint-intellij", | |||
"line": 78, | |||
"textRange": { | |||
"startLine": 78, | |||
"endLine": 78, | |||
"startOffset": 14, | |||
"endOffset": 39 | |||
}, | |||
"flows": [], | |||
"status": "CONFIRMED", | |||
"message": "Provide multiple methods instead of using \"modal\" to determine which action to take.", | |||
"effort": "15min", | |||
"debt": "15min", | |||
"assignee": "john.smith", | |||
"author": "john.smith@email.com", | |||
"tags": [ | |||
"design" | |||
], | |||
"transitions": [ | |||
"unconfirm", | |||
"resolve", | |||
"falsepositive", | |||
"wontfix" | |||
], | |||
"actions": [ | |||
"comment", | |||
"assign", | |||
"set_tags", | |||
"set_type", | |||
"assign_to_me", | |||
"set_severity" | |||
], | |||
"comments": [ | |||
{ | |||
"key": "AVmDRx8Zm-z8OYZYRSxo", | |||
"login": "jane.doo", | |||
"htmlText": "Please fix this", | |||
"markdown": "Please fix this", | |||
"updatable": true, | |||
"createdAt": "2017-01-09T13:49:53+0100" | |||
} | |||
], | |||
"creationDate": "2016-11-25T13:50:24+0100", | |||
"updateDate": "2017-01-09T13:51:12+0100", | |||
"type": "CODE_SMELL" | |||
}, | |||
"components": [ | |||
{ | |||
"id": 87163, | |||
"key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij:src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"uuid": "AVfTIlxMwczdZ2UaLhnt", | |||
"enabled": true, | |||
"qualifier": "FIL", | |||
"name": "ServerIssueUpdater.java", | |||
"longName": "src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"path": "src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"projectId": 23498, | |||
"subProjectId": 23498 | |||
}, | |||
{ | |||
"id": 23498, | |||
"key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij", | |||
"uuid": "8b745480-b598-4e34-af4a-cb2de1808e50", | |||
"enabled": true, | |||
"qualifier": "TRK", | |||
"name": "SonarLint for IntelliJ IDEA", | |||
"longName": "SonarLint for IntelliJ IDEA" | |||
} | |||
], | |||
"rules": [ | |||
{ | |||
"key": "squid:S2301", | |||
"name": "Public methods should not contain selector arguments", | |||
"lang": "java", | |||
"status": "READY", | |||
"langName": "Java" | |||
} | |||
], | |||
"users": [ | |||
{ | |||
"login": "john.smith", | |||
"name": "John Smith", | |||
"email": "john.smith@email.com", | |||
"active": true | |||
}, | |||
{ | |||
"login": "jane.doo", | |||
"name": "Jane Doo", | |||
"email": "jane.doo@mail.net", | |||
"active": true | |||
} | |||
] | |||
} |
@@ -0,0 +1,6 @@ | |||
{ | |||
"total": 2, | |||
"success": 1, | |||
"ignored": 1, | |||
"failures": 0 | |||
} |
@@ -0,0 +1,100 @@ | |||
{ | |||
"issue": { | |||
"key": "AVibidgv1LF0E-ru2DVv", | |||
"rule": "squid:S2301", | |||
"severity": "MAJOR", | |||
"component": "org.sonarsource.sonarlint.intellij:sonarlint-intellij:src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"componentId": 87163, | |||
"project": "org.sonarsource.sonarlint.intellij:sonarlint-intellij", | |||
"line": 78, | |||
"textRange": { | |||
"startLine": 78, | |||
"endLine": 78, | |||
"startOffset": 14, | |||
"endOffset": 39 | |||
}, | |||
"flows": [], | |||
"status": "CONFIRMED", | |||
"message": "Provide multiple methods instead of using \"modal\" to determine which action to take.", | |||
"effort": "15min", | |||
"debt": "15min", | |||
"assignee": "john.smith", | |||
"author": "john.smith@email.com", | |||
"tags": [ | |||
"design" | |||
], | |||
"transitions": [ | |||
"unconfirm", | |||
"resolve", | |||
"falsepositive", | |||
"wontfix" | |||
], | |||
"actions": [ | |||
"comment", | |||
"assign", | |||
"set_tags", | |||
"set_type", | |||
"assign_to_me", | |||
"set_severity" | |||
], | |||
"comments": [ | |||
{ | |||
"key": "AVmDRx8Zm-z8OYZYRSxo", | |||
"login": "jane.doo", | |||
"htmlText": "Please fix this", | |||
"markdown": "Please fix this", | |||
"updatable": true, | |||
"createdAt": "2017-01-09T13:49:53+0100" | |||
} | |||
], | |||
"creationDate": "2016-11-25T13:50:24+0100", | |||
"updateDate": "2017-01-09T13:51:12+0100", | |||
"type": "CODE_SMELL" | |||
}, | |||
"components": [ | |||
{ | |||
"id": 87163, | |||
"key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij:src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"uuid": "AVfTIlxMwczdZ2UaLhnt", | |||
"enabled": true, | |||
"qualifier": "FIL", | |||
"name": "ServerIssueUpdater.java", | |||
"longName": "src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"path": "src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"projectId": 23498, | |||
"subProjectId": 23498 | |||
}, | |||
{ | |||
"id": 23498, | |||
"key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij", | |||
"uuid": "8b745480-b598-4e34-af4a-cb2de1808e50", | |||
"enabled": true, | |||
"qualifier": "TRK", | |||
"name": "SonarLint for IntelliJ IDEA", | |||
"longName": "SonarLint for IntelliJ IDEA" | |||
} | |||
], | |||
"rules": [ | |||
{ | |||
"key": "squid:S2301", | |||
"name": "Public methods should not contain selector arguments", | |||
"lang": "java", | |||
"status": "READY", | |||
"langName": "Java" | |||
} | |||
], | |||
"users": [ | |||
{ | |||
"login": "john.smith", | |||
"name": "John Smith", | |||
"email": "john.smith@email.com", | |||
"active": true | |||
}, | |||
{ | |||
"login": "jane.doo", | |||
"name": "Jane Doo", | |||
"email": "jane.doo@mail.net", | |||
"active": true | |||
} | |||
] | |||
} |
@@ -0,0 +1,100 @@ | |||
{ | |||
"issue": { | |||
"key": "AVibidgv1LF0E-ru2DVv", | |||
"rule": "squid:S2301", | |||
"severity": "MAJOR", | |||
"component": "org.sonarsource.sonarlint.intellij:sonarlint-intellij:src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"componentId": 87163, | |||
"project": "org.sonarsource.sonarlint.intellij:sonarlint-intellij", | |||
"line": 78, | |||
"textRange": { | |||
"startLine": 78, | |||
"endLine": 78, | |||
"startOffset": 14, | |||
"endOffset": 39 | |||
}, | |||
"flows": [], | |||
"status": "CONFIRMED", | |||
"message": "Provide multiple methods instead of using \"modal\" to determine which action to take.", | |||
"effort": "15min", | |||
"debt": "15min", | |||
"assignee": "john.smith", | |||
"author": "john.smith@email.com", | |||
"tags": [ | |||
"design" | |||
], | |||
"transitions": [ | |||
"unconfirm", | |||
"resolve", | |||
"falsepositive", | |||
"wontfix" | |||
], | |||
"actions": [ | |||
"comment", | |||
"assign", | |||
"set_tags", | |||
"set_type", | |||
"assign_to_me", | |||
"set_severity" | |||
], | |||
"comments": [ | |||
{ | |||
"key": "AVmDRx8Zm-z8OYZYRSxo", | |||
"login": "jane.doo", | |||
"htmlText": "Please fix this", | |||
"markdown": "Please fix this", | |||
"updatable": true, | |||
"createdAt": "2017-01-09T13:49:53+0100" | |||
} | |||
], | |||
"creationDate": "2016-11-25T13:50:24+0100", | |||
"updateDate": "2017-01-09T13:51:12+0100", | |||
"type": "CODE_SMELL" | |||
}, | |||
"components": [ | |||
{ | |||
"id": 87163, | |||
"key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij:src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"uuid": "AVfTIlxMwczdZ2UaLhnt", | |||
"enabled": true, | |||
"qualifier": "FIL", | |||
"name": "ServerIssueUpdater.java", | |||
"longName": "src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"path": "src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"projectId": 23498, | |||
"subProjectId": 23498 | |||
}, | |||
{ | |||
"id": 23498, | |||
"key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij", | |||
"uuid": "8b745480-b598-4e34-af4a-cb2de1808e50", | |||
"enabled": true, | |||
"qualifier": "TRK", | |||
"name": "SonarLint for IntelliJ IDEA", | |||
"longName": "SonarLint for IntelliJ IDEA" | |||
} | |||
], | |||
"rules": [ | |||
{ | |||
"key": "squid:S2301", | |||
"name": "Public methods should not contain selector arguments", | |||
"lang": "java", | |||
"status": "READY", | |||
"langName": "Java" | |||
} | |||
], | |||
"users": [ | |||
{ | |||
"login": "john.smith", | |||
"name": "John Smith", | |||
"email": "john.smith@email.com", | |||
"active": true | |||
}, | |||
{ | |||
"login": "jane.doo", | |||
"name": "Jane Doo", | |||
"email": "jane.doo@mail.net", | |||
"active": true | |||
} | |||
] | |||
} |
@@ -0,0 +1,100 @@ | |||
{ | |||
"issue": { | |||
"key": "AVibidgv1LF0E-ru2DVv", | |||
"rule": "squid:S2301", | |||
"severity": "MAJOR", | |||
"component": "org.sonarsource.sonarlint.intellij:sonarlint-intellij:src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"componentId": 87163, | |||
"project": "org.sonarsource.sonarlint.intellij:sonarlint-intellij", | |||
"line": 78, | |||
"textRange": { | |||
"startLine": 78, | |||
"endLine": 78, | |||
"startOffset": 14, | |||
"endOffset": 39 | |||
}, | |||
"flows": [], | |||
"status": "CONFIRMED", | |||
"message": "Provide multiple methods instead of using \"modal\" to determine which action to take.", | |||
"effort": "15min", | |||
"debt": "15min", | |||
"assignee": "john.smith", | |||
"author": "john.smith@email.com", | |||
"tags": [ | |||
"design" | |||
], | |||
"transitions": [ | |||
"unconfirm", | |||
"resolve", | |||
"falsepositive", | |||
"wontfix" | |||
], | |||
"actions": [ | |||
"comment", | |||
"assign", | |||
"set_tags", | |||
"set_type", | |||
"assign_to_me", | |||
"set_severity" | |||
], | |||
"comments": [ | |||
{ | |||
"key": "AVmDRx8Zm-z8OYZYRSxo", | |||
"login": "jane.doo", | |||
"htmlText": "Please fix this", | |||
"markdown": "Please fix this", | |||
"updatable": true, | |||
"createdAt": "2017-01-09T13:49:53+0100" | |||
} | |||
], | |||
"creationDate": "2016-11-25T13:50:24+0100", | |||
"updateDate": "2017-01-09T13:51:12+0100", | |||
"type": "CODE_SMELL" | |||
}, | |||
"components": [ | |||
{ | |||
"id": 87163, | |||
"key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij:src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"uuid": "AVfTIlxMwczdZ2UaLhnt", | |||
"enabled": true, | |||
"qualifier": "FIL", | |||
"name": "ServerIssueUpdater.java", | |||
"longName": "src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"path": "src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"projectId": 23498, | |||
"subProjectId": 23498 | |||
}, | |||
{ | |||
"id": 23498, | |||
"key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij", | |||
"uuid": "8b745480-b598-4e34-af4a-cb2de1808e50", | |||
"enabled": true, | |||
"qualifier": "TRK", | |||
"name": "SonarLint for IntelliJ IDEA", | |||
"longName": "SonarLint for IntelliJ IDEA" | |||
} | |||
], | |||
"rules": [ | |||
{ | |||
"key": "squid:S2301", | |||
"name": "Public methods should not contain selector arguments", | |||
"lang": "java", | |||
"status": "READY", | |||
"langName": "Java" | |||
} | |||
], | |||
"users": [ | |||
{ | |||
"login": "john.smith", | |||
"name": "John Smith", | |||
"email": "john.smith@email.com", | |||
"active": true | |||
}, | |||
{ | |||
"login": "jane.doo", | |||
"name": "Jane Doo", | |||
"email": "jane.doo@mail.net", | |||
"active": true | |||
} | |||
] | |||
} |
@@ -0,0 +1,100 @@ | |||
{ | |||
"issue": { | |||
"key": "AVibidgv1LF0E-ru2DVv", | |||
"rule": "squid:S2301", | |||
"severity": "MAJOR", | |||
"component": "org.sonarsource.sonarlint.intellij:sonarlint-intellij:src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"componentId": 87163, | |||
"project": "org.sonarsource.sonarlint.intellij:sonarlint-intellij", | |||
"line": 78, | |||
"textRange": { | |||
"startLine": 78, | |||
"endLine": 78, | |||
"startOffset": 14, | |||
"endOffset": 39 | |||
}, | |||
"flows": [], | |||
"status": "CONFIRMED", | |||
"message": "Provide multiple methods instead of using \"modal\" to determine which action to take.", | |||
"effort": "15min", | |||
"debt": "15min", | |||
"assignee": "john.smith", | |||
"author": "john.smith@email.com", | |||
"tags": [ | |||
"design" | |||
], | |||
"transitions": [ | |||
"unconfirm", | |||
"resolve", | |||
"falsepositive", | |||
"wontfix" | |||
], | |||
"actions": [ | |||
"comment", | |||
"assign", | |||
"set_tags", | |||
"set_type", | |||
"assign_to_me", | |||
"set_severity" | |||
], | |||
"comments": [ | |||
{ | |||
"key": "AVmDRx8Zm-z8OYZYRSxo", | |||
"login": "jane.doo", | |||
"htmlText": "Please fix this", | |||
"markdown": "Please fix this", | |||
"updatable": true, | |||
"createdAt": "2017-01-09T13:49:53+0100" | |||
} | |||
], | |||
"creationDate": "2016-11-25T13:50:24+0100", | |||
"updateDate": "2017-01-09T13:51:12+0100", | |||
"type": "CODE_SMELL" | |||
}, | |||
"components": [ | |||
{ | |||
"id": 87163, | |||
"key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij:src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"uuid": "AVfTIlxMwczdZ2UaLhnt", | |||
"enabled": true, | |||
"qualifier": "FIL", | |||
"name": "ServerIssueUpdater.java", | |||
"longName": "src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"path": "src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"projectId": 23498, | |||
"subProjectId": 23498 | |||
}, | |||
{ | |||
"id": 23498, | |||
"key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij", | |||
"uuid": "8b745480-b598-4e34-af4a-cb2de1808e50", | |||
"enabled": true, | |||
"qualifier": "TRK", | |||
"name": "SonarLint for IntelliJ IDEA", | |||
"longName": "SonarLint for IntelliJ IDEA" | |||
} | |||
], | |||
"rules": [ | |||
{ | |||
"key": "squid:S2301", | |||
"name": "Public methods should not contain selector arguments", | |||
"lang": "java", | |||
"status": "READY", | |||
"langName": "Java" | |||
} | |||
], | |||
"users": [ | |||
{ | |||
"login": "john.smith", | |||
"name": "John Smith", | |||
"email": "john.smith@email.com", | |||
"active": true | |||
}, | |||
{ | |||
"login": "jane.doo", | |||
"name": "Jane Doo", | |||
"email": "jane.doo@mail.net", | |||
"active": true | |||
} | |||
] | |||
} |
@@ -0,0 +1,100 @@ | |||
{ | |||
"issue": { | |||
"key": "AVibidgv1LF0E-ru2DVv", | |||
"rule": "squid:S2301", | |||
"severity": "MAJOR", | |||
"component": "org.sonarsource.sonarlint.intellij:sonarlint-intellij:src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"componentId": 87163, | |||
"project": "org.sonarsource.sonarlint.intellij:sonarlint-intellij", | |||
"line": 78, | |||
"textRange": { | |||
"startLine": 78, | |||
"endLine": 78, | |||
"startOffset": 14, | |||
"endOffset": 39 | |||
}, | |||
"flows": [], | |||
"status": "CONFIRMED", | |||
"message": "Provide multiple methods instead of using \"modal\" to determine which action to take.", | |||
"effort": "15min", | |||
"debt": "15min", | |||
"assignee": "john.smith", | |||
"author": "john.smith@email.com", | |||
"tags": [ | |||
"design" | |||
], | |||
"transitions": [ | |||
"unconfirm", | |||
"resolve", | |||
"falsepositive", | |||
"wontfix" | |||
], | |||
"actions": [ | |||
"comment", | |||
"assign", | |||
"set_tags", | |||
"set_type", | |||
"assign_to_me", | |||
"set_severity" | |||
], | |||
"comments": [ | |||
{ | |||
"key": "AVmDRx8Zm-z8OYZYRSxo", | |||
"login": "jane.doo", | |||
"htmlText": "Please fix this", | |||
"markdown": "Please fix this", | |||
"updatable": true, | |||
"createdAt": "2017-01-09T13:49:53+0100" | |||
} | |||
], | |||
"creationDate": "2016-11-25T13:50:24+0100", | |||
"updateDate": "2017-01-09T13:51:12+0100", | |||
"type": "CODE_SMELL" | |||
}, | |||
"components": [ | |||
{ | |||
"id": 87163, | |||
"key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij:src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"uuid": "AVfTIlxMwczdZ2UaLhnt", | |||
"enabled": true, | |||
"qualifier": "FIL", | |||
"name": "ServerIssueUpdater.java", | |||
"longName": "src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"path": "src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"projectId": 23498, | |||
"subProjectId": 23498 | |||
}, | |||
{ | |||
"id": 23498, | |||
"key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij", | |||
"uuid": "8b745480-b598-4e34-af4a-cb2de1808e50", | |||
"enabled": true, | |||
"qualifier": "TRK", | |||
"name": "SonarLint for IntelliJ IDEA", | |||
"longName": "SonarLint for IntelliJ IDEA" | |||
} | |||
], | |||
"rules": [ | |||
{ | |||
"key": "squid:S2301", | |||
"name": "Public methods should not contain selector arguments", | |||
"lang": "java", | |||
"status": "READY", | |||
"langName": "Java" | |||
} | |||
], | |||
"users": [ | |||
{ | |||
"login": "john.smith", | |||
"name": "John Smith", | |||
"email": "john.smith@email.com", | |||
"active": true | |||
}, | |||
{ | |||
"login": "jane.doo", | |||
"name": "Jane Doo", | |||
"email": "jane.doo@mail.net", | |||
"active": true | |||
} | |||
] | |||
} |
@@ -0,0 +1,100 @@ | |||
{ | |||
"issue": { | |||
"key": "AVibidgv1LF0E-ru2DVv", | |||
"rule": "squid:S2301", | |||
"severity": "MAJOR", | |||
"component": "org.sonarsource.sonarlint.intellij:sonarlint-intellij:src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"componentId": 87163, | |||
"project": "org.sonarsource.sonarlint.intellij:sonarlint-intellij", | |||
"line": 78, | |||
"textRange": { | |||
"startLine": 78, | |||
"endLine": 78, | |||
"startOffset": 14, | |||
"endOffset": 39 | |||
}, | |||
"flows": [], | |||
"status": "CONFIRMED", | |||
"message": "Provide multiple methods instead of using \"modal\" to determine which action to take.", | |||
"effort": "15min", | |||
"debt": "15min", | |||
"assignee": "john.smith", | |||
"author": "john.smith@email.com", | |||
"tags": [ | |||
"design" | |||
], | |||
"transitions": [ | |||
"unconfirm", | |||
"resolve", | |||
"falsepositive", | |||
"wontfix" | |||
], | |||
"actions": [ | |||
"comment", | |||
"assign", | |||
"set_tags", | |||
"set_type", | |||
"assign_to_me", | |||
"set_severity" | |||
], | |||
"comments": [ | |||
{ | |||
"key": "AVmDRx8Zm-z8OYZYRSxo", | |||
"login": "jane.doo", | |||
"htmlText": "Please fix this", | |||
"markdown": "Please fix this", | |||
"updatable": true, | |||
"createdAt": "2017-01-09T13:49:53+0100" | |||
} | |||
], | |||
"creationDate": "2016-11-25T13:50:24+0100", | |||
"updateDate": "2017-01-09T13:51:12+0100", | |||
"type": "CODE_SMELL" | |||
}, | |||
"components": [ | |||
{ | |||
"id": 87163, | |||
"key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij:src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"uuid": "AVfTIlxMwczdZ2UaLhnt", | |||
"enabled": true, | |||
"qualifier": "FIL", | |||
"name": "ServerIssueUpdater.java", | |||
"longName": "src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"path": "src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", | |||
"projectId": 23498, | |||
"subProjectId": 23498 | |||
}, | |||
{ | |||
"id": 23498, | |||
"key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij", | |||
"uuid": "8b745480-b598-4e34-af4a-cb2de1808e50", | |||
"enabled": true, | |||
"qualifier": "TRK", | |||
"name": "SonarLint for IntelliJ IDEA", | |||
"longName": "SonarLint for IntelliJ IDEA" | |||
} | |||
], | |||
"rules": [ | |||
{ | |||
"key": "squid:S2301", | |||
"name": "Public methods should not contain selector arguments", | |||
"lang": "java", | |||
"status": "READY", | |||
"langName": "Java" | |||
} | |||
], | |||
"users": [ | |||
{ | |||
"login": "john.smith", | |||
"name": "John Smith", | |||
"email": "john.smith@email.com", | |||
"active": true | |||
}, | |||
{ | |||
"login": "jane.doo", | |||
"name": "Jane Doo", | |||
"email": "jane.doo@mail.net", | |||
"active": true | |||
} | |||
] | |||
} |
@@ -175,7 +175,7 @@ public class AddCommentActionTest { | |||
assertThat(action.isPost()).isTrue(); | |||
assertThat(action.isInternal()).isFalse(); | |||
assertThat(action.params()).hasSize(2); | |||
assertThat(action.responseExample()).isNull(); | |||
assertThat(action.responseExample()).isNotNull(); | |||
} | |||
private TestResponse call(@Nullable String issueKey, @Nullable String commentText) { |
@@ -402,7 +402,7 @@ public class BulkChangeActionTest { | |||
assertThat(action.isPost()).isTrue(); | |||
assertThat(action.isInternal()).isFalse(); | |||
assertThat(action.params()).hasSize(11); | |||
assertThat(action.responseExample()).isNull(); | |||
assertThat(action.responseExample()).isNotNull(); | |||
} | |||
private BulkChangeWsResponse call(BulkChangeRequest bulkChangeRequest) { |
@@ -155,7 +155,7 @@ public class DeleteCommentActionTest { | |||
assertThat(action.isPost()).isTrue(); | |||
assertThat(action.isInternal()).isFalse(); | |||
assertThat(action.params()).hasSize(1); | |||
assertThat(action.responseExample()).isNull(); | |||
assertThat(action.responseExample()).isNotNull(); | |||
} | |||
private TestResponse call(@Nullable String commentKey) { |
@@ -189,7 +189,7 @@ public class EditCommentActionTest { | |||
assertThat(action.isPost()).isTrue(); | |||
assertThat(action.isInternal()).isFalse(); | |||
assertThat(action.params()).hasSize(2); | |||
assertThat(action.responseExample()).isNull(); | |||
assertThat(action.responseExample()).isNotNull(); | |||
} | |||
private TestResponse call(@Nullable String commentKey, @Nullable String commentText) { |
@@ -53,7 +53,7 @@ public class SetTagsActionTest { | |||
public void should_define() { | |||
Action action = tester.controller("api/issues").action("set_tags"); | |||
assertThat(action.description()).isNotEmpty(); | |||
assertThat(action.responseExampleAsString()).isNull(); | |||
assertThat(action.responseExampleAsString()).isNotEmpty(); | |||
assertThat(action.isPost()).isTrue(); | |||
assertThat(action.isInternal()).isFalse(); | |||
assertThat(action.handler()).isEqualTo(sut); |