Bläddra i källkod

SONAR-10577 Fix quality issues

tags/7.5
Duarte Meneses 6 år sedan
förälder
incheckning
7dd669b817

+ 2
- 2
server/sonar-server/src/main/java/org/sonar/server/issue/ws/SearchAction.java Visa fil

@@ -164,8 +164,8 @@ public class SearchAction implements IssuesWsAction {
new Change("5.5", "response fields 'reporter' and 'actionPlan' are removed (drop of action plan and manual issue features)"),
new Change("5.5", "parameters 'reporters', 'actionPlans' and 'planned' are dropped and therefore ignored (drop of action plan and manual issue features)"),
new Change("5.5", "response field 'debt' is renamed 'effort'"),
new Change("7.2", "response 'issue' now indicates if issue has been created by an externally defined rule engine and his name through the optional 'externalRuleEngine' field")
).setResponseExample(getClass().getResource("search-example.json"));
new Change("7.2", "response field 'externalRuleEngine' added to issues that have been imported from an external rule engine"))
.setResponseExample(getClass().getResource("search-example.json"));

action.addPagingParams(100, MAX_LIMIT);
action.createParam(Param.FACETS)

+ 1
- 1
server/sonar-server/src/main/java/org/sonar/server/issue/ws/SearchResponseFormat.java Visa fil

@@ -200,7 +200,7 @@ public class SearchResponseFormat {
setNullable(dto.getIssueCloseDate(), issueBuilder::setCloseDate, DateUtils::formatDateTime);
}

private String engineNameFrom(RuleKey ruleKey) {
private static String engineNameFrom(RuleKey ruleKey) {
checkState(ruleKey.repository().startsWith(EXTERNAL_RULE_REPO_PREFIX));
return ruleKey.repository().replace(EXTERNAL_RULE_REPO_PREFIX, "");
}

Laddar…
Avbryt
Spara