return this;
}
- /**
- * @deprecated since 10.2
- */
- @Deprecated(since = "10.2")
public Integer getIssueType() {
return issueType;
}
- /**
- * @deprecated since 10.2
- */
- @Deprecated(since = "10.2")
public IndexedIssueDto setIssueType(Integer issueType) {
this.issueType = issueType;
return this;
return this;
}
- public boolean isPrioritizedRule(){
+ public boolean isPrioritizedRule() {
return prioritizedRule;
}
- public IndexedIssueDto setPrioritizedRule(boolean prioritizedRule){
+ public IndexedIssueDto setPrioritizedRule(boolean prioritizedRule) {
this.prioritizedRule = prioritizedRule;
return this;
}
return getNullableField(IssueIndexDefinition.FIELD_ISSUE_AUTHOR_LOGIN);
}
- /**
- * @deprecated since 10.2
- */
- @Deprecated(since = "10.2")
public RuleType type() {
return RuleType.valueOf(getField(IssueIndexDefinition.FIELD_ISSUE_TYPE));
}
return this;
}
- /**
- * @deprecated since 10.2
- */
- @Deprecated(since = "10.2")
public IssueDoc setSeverity(@Nullable String s) {
setField(IssueIndexDefinition.FIELD_ISSUE_SEVERITY, s);
setField(IssueIndexDefinition.FIELD_ISSUE_SEVERITY_VALUE, Severity.ALL.indexOf(s));
return this;
}
- @Deprecated(since = "10.2")
public IssueDoc setType(RuleType type) {
setField(IssueIndexDefinition.FIELD_ISSUE_TYPE, type.toString());
return this;
return this;
}
- public boolean isPrioritizedRule(){
+ public boolean isPrioritizedRule() {
return getField(IssueIndexDefinition.FIELD_PRIORITIZED_RULE);
}
- public IssueDoc setPrioritizedRule(boolean prioritizedRule){
+ public IssueDoc setPrioritizedRule(boolean prioritizedRule) {
setField(IssueIndexDefinition.FIELD_PRIORITIZED_RULE, prioritizedRule);
return this;
}
return severity;
}
- @Deprecated(since = "10.4")
public NewCustomRule setSeverity(@Nullable String severity) {
this.severity = severity;
return this;
return type;
}
- @Deprecated(since = "10.4")
public NewCustomRule setType(@Nullable RuleType type) {
this.type = type;
return this;
"Requires authentication and the following permission: 'Browse' on the project of the specified issue.")
.setSince("3.6")
.setChangelog(
+ new Change("10.8", "The response fields 'severity' and 'type' are not deprecated anymore."),
new Change("10.8", format("Possible values '%s' and '%s' for response field 'severity' of 'impacts' have been added.", Severity.INFO.name(), Severity.BLOCKER.name())),
new Change("10.4", "The response fields 'severity' and 'type' are deprecated. Please use 'impacts' instead."),
new Change("10.4", "The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead."),
.setDescription("Assign/Unassign an issue. Requires authentication and Browse permission on project")
.setSince("3.6")
.setChangelog(
+ new Change("10.8", "The response fields 'severity' and 'type' are not deprecated anymore."),
new Change("10.8", format("Possible values '%s' and '%s' for response field 'severity' of 'impacts' have been added.", Severity.INFO.name(), Severity.BLOCKER.name())),
new Change("10.4", "The response fields 'severity' and 'type' are deprecated. Please use 'impacts' instead."),
new Change("10.4", "The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead."),
"Requires authentication.")
.setSince("3.7")
.setChangelog(
+ new Change("10.8", format("The parameters '%s' and '%s' are not deprecated anymore.", PARAM_SET_SEVERITY, PARAM_SET_TYPE)),
new Change("10.4", ("Transitions '%s' and '%s' are now deprecated. Use transition '%s' instead. " +
"The transition '%s' is deprecated too.").formatted(WONT_FIX, CONFIRM, ACCEPT, UNCONFIRM)),
new Change("10.4", "Transition '%s' is now supported.".formatted(ACCEPT)),
.setExampleValue("john.smith");
action.createParam(PARAM_SET_SEVERITY)
.setDescription("To change the severity of the list of issues")
- .setDeprecatedSince("10.2")
.setExampleValue(BLOCKER)
.setPossibleValues(Severity.ALL);
action.createParam(PARAM_SET_TYPE)
.setDescription("To change the type of the list of issues")
- .setDeprecatedSince("10.2")
.setExampleValue(BUG)
.setPossibleValues(RuleType.names())
.setSince("5.5");
public void define(WebService.NewController context) {
WebService.NewAction action = context.createAction(ACTION_CHANGELOG)
.setDescription("Display changelog of an issue.<br/>" +
- "Requires the 'Browse' permission on the project of the specified issue.")
+ "Requires the 'Browse' permission on the project of the specified issue.")
.setSince("4.1")
.setChangelog(
+ new Change("10.8", "'severity' and 'type' keys are not deprecated anymore."),
new Change("10.4", "'issueStatus' key is added in the differences"),
new Change("10.4", "'status', 'resolution', 'severity' and 'type' keys are now deprecated in the differences"),
new Change("9.7", "'externalUser' and 'webhookSource' information added to the answer"),
"Requires authentication and the following permission: 'Browse' on the project of the specified issue.")
.setSince("3.6")
.setChangelog(
+ new Change("10.8", "The response fields 'severity' and 'type' are not deprecated anymore."),
new Change("10.4", "The response fields 'severity' and 'type' are deprecated. Please use 'impacts' instead."),
new Change("10.4", "The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead."),
new Change("10.4", "Add 'issueStatus' field to the response."),
""".formatted(DefaultTransitions.ACCEPT, DefaultTransitions.WONT_FIX, DefaultTransitions.FALSE_POSITIVE))
.setSince("3.6")
.setChangelog(
+ new Change("10.8", "The response fields 'severity' and 'type' are not deprecated anymore."),
new Change("10.8", format("Possible values '%s' and '%s' for response field 'severity' of 'impacts' have been added.", Severity.INFO.name(), Severity.BLOCKER.name())),
new Change("10.4", "The transitions '%s' and '%s' are deprecated. Please use '%s' instead. The transition '%s' is deprecated too. "
.formatted(DefaultTransitions.WONT_FIX, DefaultTransitions.CONFIRM, DefaultTransitions.ACCEPT, DefaultTransitions.UNCONFIRM)),
"Requires authentication and the following permission: 'Browse' on the project of the specified issue.")
.setSince("3.6")
.setChangelog(
+ new Change("10.8", "The response fields 'severity' and 'type' are not deprecated anymore."),
new Change("10.8", format("Possible values '%s' and '%s' for response field 'severity' of 'impacts' have been added.", Severity.INFO.name(), Severity.BLOCKER.name())),
new Change("10.4", "The response fields 'severity' and 'type' are deprecated. Please use 'impacts' instead."),
new Change("10.4", "The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead."),
.setHandler(this)
.setInternal(true)
.setDescription("List issues. This endpoint is used in degraded mode, when issue indexing is running." +
- "<br>Either 'project' or 'component' parameter is required." +
- "<br>Total number of issues will be always equal to a page size, as this counting all issues is not supported. " +
- "<br>Requires the 'Browse' permission on the specified project. ")
+ "<br>Either 'project' or 'component' parameter is required." +
+ "<br>Total number of issues will be always equal to a page size, as this counting all issues is not supported. " +
+ "<br>Requires the 'Browse' permission on the specified project. ")
.setSince("10.2")
.setChangelog(
+ new Change("10.8", format("The parameter '%s' are not deprecated anymore.", PARAM_TYPES)),
+ new Change("10.8", "The response fields 'severity' and 'type' are not deprecated anymore."),
new Change("10.4", format("Parameter '%s' is deprecated.", PARAM_TYPES)),
new Change("10.4", "The response fields 'severity' and 'type' are deprecated. Please use 'impacts' instead."),
new Change("10.4", "The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead."),
- new Change("10.4", "Add 'issueStatus' field to the response.")
- )
+ new Change("10.4", "Add 'issueStatus' field to the response."))
.setResponseExample(getClass().getResource("list-example.json"));
action.addPagingParams(100, MAX_PAGE_SIZE);
action.createParam(PARAM_TYPES)
.setDescription("Comma-separated list of issue types")
.setExampleValue("BUG, VULNERABILITY")
- .setDeprecatedSince("10.4")
.setPossibleValues(RuleType.BUG.name(), RuleType.VULNERABILITY.name(), RuleType.CODE_SMELL.name());
action.createParam(PARAM_IN_NEW_CODE_PERIOD)
+ "<br/>When issue indexing is in progress returns 503 service unavailable HTTP code.")
.setSince("3.6")
.setChangelog(
+ new Change("10.8", "The response fields 'severity' and 'type' are not deprecated anymore.."),
+ new Change("10.8", "The fields 'severity' and 'type' are not deprecated anymore."),
+ new Change("10.8", format("The parameters '%s' and '%s' are not deprecated anymore.", PARAM_SEVERITIES, PARAM_TYPES)),
new Change("10.8", format("Possible values '%s' and '%s' for response field 'impactSeverities' of 'facets' have been added.", INFO.name(), BLOCKER.name())),
new Change("10.8", format("Possible values '%s' and '%s' for response field 'severity' of 'impacts' have been added.", INFO.name(), BLOCKER.name())),
new Change("10.8", format("Parameter '%s' now supports values: '%s','%s'.", PARAM_SEVERITIES, INFO.name(), BLOCKER.name())),
action.createParam(PARAM_SEVERITIES)
.setDescription("Comma-separated list of severities")
.setExampleValue(Severity.BLOCKER + "," + Severity.CRITICAL)
- .setPossibleValues(Severity.ALL)
- .setDeprecatedSince("10.4");
+ .setPossibleValues(Severity.ALL);
action.createParam(PARAM_IMPACT_SOFTWARE_QUALITIES)
.setSince("10.2")
.setDescription("Comma-separated list of Software Qualities")
action.createParam(PARAM_RESOLUTIONS)
.setDescription("Comma-separated list of resolutions")
.setExampleValue(RESOLUTION_FIXED + "," + RESOLUTION_REMOVED)
- .setPossibleValues(RESOLUTIONS)
- .setDeprecatedSince("10.4");
+ .setPossibleValues(RESOLUTIONS);
action.createParam(PARAM_RESOLVED)
.setDescription("To match resolved or unresolved issues")
.setBooleanPossibleValues();
action.createParam(PARAM_TYPES)
.setDescription("Comma-separated list of types.")
.setSince("5.5")
- .setDeprecatedSince("10.4")
.setPossibleValues(ALL_RULE_TYPES_EXCEPT_SECURITY_HOTSPOTS)
.setExampleValue(format("%s,%s", RuleType.CODE_SMELL, RuleType.BUG));
action.createParam(PARAM_OWASP_ASVS_LEVEL)
.setDescription("Set tags on an issue. <br/>" +
"Requires authentication and Browse permission on project")
.setChangelog(
+ new Change("10.8", "The response fields 'severity' and 'type' are not deprecated anymore."),
new Change("10.8", format("Possible values '%s' and '%s' for response field 'severity' of 'impacts' have been added.", Severity.INFO.name(), Severity.BLOCKER.name())),
new Change("10.4", "The response fields 'severity' and 'type' are deprecated. Please use 'impacts' instead."),
new Change("10.4", "The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead."),
" <li>Edit right on the specified quality profile</li>" +
"</ul>")
.setChangelog(
+ new Change("10.8", format("The parameter '%s' is not deprecated anymore.", PARAM_SEVERITY)),
new Change("10.8", format("Add new parameter '%s'", PARAM_IMPACTS)),
new Change("10.6", format("Add parameter '%s'.", PARAM_PRIORITIZED_RULE)),
new Change("10.2", format("Parameter '%s' is now deprecated.", PARAM_SEVERITY)))
activate.createParam(PARAM_SEVERITY)
.setDescription(format("Severity. Cannot be used as the same time as '%s'.Ignored if parameter %s is true.", PARAM_IMPACTS, PARAM_RESET))
- .setDeprecatedSince("10.2")
.setPossibleValues(Severity.ALL);
activate.createParam(PARAM_IMPACTS)
import org.sonar.server.rule.ws.RuleQueryFactory;
import org.sonar.server.user.UserSession;
-import static java.lang.Boolean.TRUE;
import static java.lang.String.format;
import static org.sonar.core.util.Uuids.UUID_EXAMPLE_03;
import static org.sonar.server.qualityprofile.ws.BulkChangeWsResponse.writeResponse;
.setPost(true)
.setSince("4.4")
.setChangelog(
+ new Change("10.8",
+ format("The parameters '%s', '%s', '%s', and '%s' are not deprecated anymore.", PARAM_SEVERITIES, PARAM_TARGET_SEVERITY, PARAM_ACTIVE_SEVERITIES, PARAM_TYPES)),
new Change("10.6", format("Add parameter '%s'.", PARAM_PRIORITIZED_RULE)),
new Change("10.2", format("Parameters '%s', '%s', '%s', and '%s' are now deprecated.", PARAM_SEVERITIES, PARAM_TARGET_SEVERITY, PARAM_ACTIVE_SEVERITIES, PARAM_TYPES)),
new Change("10.0", "Parameter 'sansTop25' is deprecated"))
activate.createParam(PARAM_TARGET_SEVERITY)
.setDescription("Severity to set on the activated rules")
- .setDeprecatedSince("10.2")
.setPossibleValues(Severity.ALL);
activate.createParam(PARAM_PRIORITIZED_RULE)
.setDescription("Backup a quality profile in XML form. The exported profile can be restored through api/qualityprofiles/restore.")
.setResponseExample(getClass().getResource("backup-example.xml"))
.setHandler(this)
- .setChangelog(new Change("10.3", "The 'priority' and 'type' fields of the rule XML object are deprecated."));
+ .setChangelog(
+ new Change("10.8", "The 'priority' and 'type' fields of the rule XML object are not deprecated anymore."),
+ new Change("10.3", "The 'priority' and 'type' fields of the rule XML object are deprecated."));
QProfileReference.defineParams(action, languages);
}
.setPost(true)
.setSince("4.4")
.setChangelog(
+ new Change("10.8", format("Parameters '%s', '%s', and '%s' are not deprecated anymore.", PARAM_SEVERITIES, PARAM_ACTIVE_SEVERITIES, PARAM_TYPES)),
new Change("10.3", "Inherited rules can be deactivated (if the global admin setting is enabled)"),
new Change("10.2", format("Parameters '%s', '%s', and '%s' are now deprecated.", PARAM_SEVERITIES, PARAM_ACTIVE_SEVERITIES, PARAM_TYPES)),
new Change("10.0", "Parameter 'sansTop25' is deprecated"))
"Requires to be logged in and the 'Administer Quality Profiles' permission.")
.setPost(true)
.setHandler(this)
- .setChangelog(new Change("10.3", "The 'priority' and 'type' fields of the rule XML object are deprecated."));
+ .setChangelog(
+ new Change("10.8", "The 'priority' and 'type' fields of the rule XML object are not deprecated anymore."),
+ new Change("10.3", "The 'priority' and 'type' fields of the rule XML object are deprecated."));
action.createParam(PARAM_BACKUP)
.setDescription("A profile backup file in XML format, as generated by api/qualityprofiles/backup " +
.setSince("4.4")
.setChangelog(
new Change("5.5", "Creating manual rule is not more possible"),
- new Change("10.0","Drop deprecated keys: 'custom_key', 'template_key', 'markdown_description', 'prevent_reactivation'"),
+ new Change("10.0", "Drop deprecated keys: 'custom_key', 'template_key', 'markdown_description', 'prevent_reactivation'"),
new Change("10.2", "Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response"),
new Change("10.2", "Fields 'type' and 'severity' are deprecated in the response. Use 'impacts' instead."),
new Change("10.4", String.format("Add '%s' and '%s' parameters to the request", PARAM_IMPACTS, PARAM_CLEAN_CODE_ATTRIBUTE)),
new Change("10.4", String.format("Parameters '%s' and '%s' are deprecated. Use '%s' instead.", PARAM_TYPE, PARAM_SEVERITY, PARAM_IMPACTS)),
- new Change("10.4", String.format("Parameter '%s' is deprecated. Use api/rules/update endpoint instead.", PARAM_PREVENT_REACTIVATION)))
+ new Change("10.4", String.format("Parameter '%s' is deprecated. Use api/rules/update endpoint instead.", PARAM_PREVENT_REACTIVATION)),
+ new Change("10.8", String.format("The parameters '%s' and '%s' are not deprecated anymore.", PARAM_TYPE, PARAM_SEVERITY)))
.setHandler(this);
action
action
.createParam(PARAM_SEVERITY)
.setPossibleValues(Severity.ALL)
- .setDescription("Rule severity")
- .setDeprecatedSince("10.4");
-
+ .setDescription("Rule severity");
action
.createParam(PARAM_STATUS)
.setPossibleValues(
action.createParam(PARAM_TYPE)
.setPossibleValues(RuleType.names())
.setDescription("Rule type")
- .setSince("6.7")
- .setDeprecatedSince("10.4");
+ .setSince("6.7");
action.createParam(PARAM_CLEAN_CODE_ATTRIBUTE)
.setDescription("Clean code attribute")
private static NewCustomRule toNewCustomRule(Request request) {
RuleKey templateKey = RuleKey.parse(request.mandatoryParam(PARAM_TEMPLATE_KEY));
NewCustomRule newRule = NewCustomRule.createForCustomRule(
- RuleKey.of(templateKey.repository(), request.mandatoryParam(PARAM_CUSTOM_KEY)), templateKey)
+ RuleKey.of(templateKey.repository(), request.mandatoryParam(PARAM_CUSTOM_KEY)), templateKey)
.setName(request.mandatoryParam(PARAM_NAME))
.setMarkdownDescription(request.mandatoryParam(PARAM_DESCRIPTION))
.setStatus(RuleStatus.valueOf(request.mandatoryParam(PARAM_STATUS)))
.createParam(PARAM_SEVERITIES)
.setDescription("Comma-separated list of default severities. Not the same than severity of rules in Quality profiles.")
.setPossibleValues(Severity.ALL)
- .setDeprecatedSince("10.2")
.setExampleValue("CRITICAL,BLOCKER");
action
action
.createParam(PARAM_SONARSOURCE_SECURITY)
.setDescription("Comma-separated list of SonarSource security categories. Use '" + SQCategory.OTHERS.getKey() + "' to select rules not associated" +
- " with any category")
+ " with any category")
.setSince("7.8")
.setPossibleValues(Arrays.stream(SQCategory.values()).map(SQCategory::getKey).toList())
.setExampleValue("sql-injection,command-injection,others");
.setSince("5.5")
.setDescription("Comma-separated list of types. Returned rules match any of the tags (OR operator)")
.setPossibleValues(RuleType.values())
- .setDeprecatedSince("10.2")
.setExampleValue(RuleType.BUG);
action.createParam(PARAM_IMPACT_SOFTWARE_QUALITIES)
action
.createParam(PARAM_ACTIVATION)
.setDescription("Filter rules that are activated or deactivated on the selected Quality profile. Ignored if " +
- "the parameter '" + PARAM_QPROFILE + "' is not set.")
+ "the parameter '" + PARAM_QPROFILE + "' is not set.")
.setBooleanPossibleValues();
action
.createParam(PARAM_QPROFILE)
.setDescription("Quality profile key to filter on. Used only if the parameter '" +
- PARAM_ACTIVATION + "' is set.")
+ PARAM_ACTIVATION + "' is set.")
.setExampleValue(UUID_EXAMPLE_01);
action.createParam(PARAM_COMPARE_TO_PROFILE)
action
.createParam(PARAM_INHERITANCE)
.setDescription("Comma-separated list of values of inheritance for a rule within a quality profile. Used only if the parameter '" +
- PARAM_ACTIVATION + "' is set.")
+ PARAM_ACTIVATION + "' is set.")
.setPossibleValues(ActiveRuleInheritance.NONE.name(),
ActiveRuleInheritance.INHERITED.name(),
ActiveRuleInheritance.OVERRIDES.name())
.setExampleValue(ActiveRuleInheritance.INHERITED.name() + "," +
- ActiveRuleInheritance.OVERRIDES.name());
+ ActiveRuleInheritance.OVERRIDES.name());
action
.createParam(PARAM_ACTIVE_SEVERITIES)
.setDescription("Comma-separated list of activation severities, i.e the severity of rules in Quality profiles.")
.setPossibleValues(Severity.ALL)
- .setDeprecatedSince("10.2")
.setExampleValue("CRITICAL,BLOCKER");
action
.addPagingParams(100, MAX_PAGE_SIZE)
.setHandler(this)
.setChangelog(
- new Change("10.8", format("Possible values '%s' and '%s' for response field 'impactSeverities' of 'facets' have been added", INFO.name(), BLOCKER.name())),
- new Change("10.8", format("Possible values '%s' and '%s' for response field 'severity' of 'impacts' have been added", INFO.name(), BLOCKER.name())),
- new Change("10.8", format("Parameter '%s' now supports values: '%s','%s'", IssuesWsParameters.PARAM_SEVERITIES, INFO.name(), BLOCKER.name())),
- new Change("10.6", format("Parameter '%s has been added", PARAM_PRIORITIZED_RULE)),
new Change("5.5", "The field 'effortToFixDescription' has been deprecated, use 'gapDescription' instead"),
new Change("5.5", "The field 'debtRemFnCoeff' has been deprecated, use 'remFnGapMultiplier' instead"),
new Change("5.5", "The field 'defaultDebtRemFnCoeff' has been deprecated, use 'defaultRemFnGapMultiplier' instead"),
new Change("10.2",
format("Parameters '%s', '%s', and '%s' are now deprecated. Use '%s' and '%s' instead.", PARAM_SEVERITIES, PARAM_TYPES, PARAM_ACTIVE_SEVERITIES,
PARAM_IMPACT_SOFTWARE_QUALITIES, PARAM_IMPACT_SEVERITIES)),
- new Change("10.8", "The field 'impacts' has been added to the response"));
+ new Change("10.6", format("Parameter '%s has been added", PARAM_PRIORITIZED_RULE)),
+ new Change("10.8", format("Possible values '%s' and '%s' for response field 'impactSeverities' of 'facets' have been added", INFO.name(), BLOCKER.name())),
+ new Change("10.8", format("Possible values '%s' and '%s' for response field 'severity' of 'impacts' have been added", INFO.name(), BLOCKER.name())),
+ new Change("10.8", format("Parameter '%s' now supports values: '%s','%s'", IssuesWsParameters.PARAM_SEVERITIES, INFO.name(), BLOCKER.name())),
+ new Change("10.8", "The field 'impacts' has been added to the response"),
+ new Change("10.8", format("The parameters '%s','%s and '%s' are not deprecated anymore.", PARAM_SEVERITIES, PARAM_TYPES, PARAM_ACTIVE_SEVERITIES)),
+ new Change("10.8", "The values 'severity' and 'types' for the 'facets' parameter are not deprecated anymore."),
+ new Change("10.8", "The fields 'type' and 'severity' in the response are not deprecated anymore."),
+ new Change("10.8", "The value 'severity' for the 'f' parameter is not deprecated anymore."));
action.createParam(FACETS)
.setDescription("Comma-separated list of the facets to be computed. No facet is computed by default.")
new Change("10.0", "The field 'debtRemFnType' has been deprecated, use 'remFnType' instead"),
new Change("10.2", "Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response"),
new Change("10.2", "The field 'severity' and 'type' in the response have been deprecated, use 'impacts' instead."),
- new Change("10.8", format("Possible values '%s' and '%s' for response field 'severity' of 'impacts' have been added.", INFO.name(), BLOCKER.name()))
-
- );
+ new Change("10.8", format("Possible values '%s' and '%s' for response field 'severity' of 'impacts' have been added.", INFO.name(), BLOCKER.name())),
+ new Change("10.8", "The field 'severity' and 'type' in the response are not deprecated anymore."));
action
.createParam(PARAM_KEY)
.setChangelog(
new Change("10.2", "The field 'severity' and 'type' in the response have been deprecated, use 'impacts' instead."),
new Change("10.4", String.format("The parameter '%s' is deprecated.", PARAM_SEVERITY)),
- new Change("10.4", "Updating a removed rule is now possible.")
- )
+ new Change("10.4", "Updating a removed rule is now possible."),
+ new Change("10.8", String.format("The parameter '%s' is not deprecated anymore.", PARAM_SEVERITY)))
.setSince("4.4")
.setChangelog(
new Change("10.2", "Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response"))
action
.createParam(PARAM_SEVERITY)
.setDescription("Rule severity (Only when updating a custom rule)")
- .setDeprecatedSince("10.4")
.setPossibleValues(Severity.ALL);
action
optional string mdDesc = 7;
optional string mdNote = 8;
optional string noteLogin = 9;
- // Deprecated since 10.2, replace by impacts
- optional string severity = 10 [deprecated = true];
+ optional string severity = 10;
optional sonarqube.ws.commons.RuleStatus status = 11;
optional string internalKey = 12;
optional bool isTemplate = 13;
optional string debtRemFnType = 34 [deprecated = true];
reserved 35;
reserved 36;
- // Deprecated since 10.2, replace by impacts
- optional sonarqube.ws.commons.RuleType type = 37 [deprecated = true];
+ optional sonarqube.ws.commons.RuleType type = 37;
optional string defaultRemFnType = 38;
optional string defaultRemFnGapMultiplier = 39;
optional string defaultRemFnBaseEffort = 40;