Currently org.sonar.api.rules.Rule has a deprecated priority attribute (accessible through the non-deprecated getSeverity() getter), its type is org.sonar.api.rules.RulePriority.
Does it mean that the SonarQube 10.x API will drop that priority attribute or maybe the type will change to a String from org.sonar.api.rule.Severity or org.sonar.check.Priority ?
That’s a fair question. Unfortunately, I don’t have a solid answer, because I’m not finding anything in Jira that’s directly related. However, based on SONAR-12006 I’m going to make an educated guess and say RulePriority will just go away. From the ticket:
…is outdated (still talk[s] about rule priority)…
And… I’m going to flag this for team attention in case someone wants to contradict me.