Version In Use
- Community Edition
- Version 7.7 (build 23042)
As part of my workflow, I would like to link to the bug descriptions at https://rules.sonarsource.com
SonarQube provides internal links to bug descriptions. (links to the same information on the webhost that runs sonarqube)
What I have tried so far
I found a list of the 379 “sonar way” rules for java on my SonarQube webhost
In many cases squid is a number…
In a few cases squid is a phrase…
Finding the same squid as an external link is easy when the squid is a number
SQUID:2637 = https://rules.sonarsource.com/java/RSPEC-2637
The search of that site seems to work better with fewer words, yet i have been able to find all but 1 of the java SonarWay rules by searching for portions of the phrase.
the result indicates that it has a number, the number is just hidden by the phrase…
SQUID:ACallToDeprecatedMethod = https://rules.sonarsource.com/java/RSPEC-1874
There is one I cannot find!
Code Smell - Major - PitFall
Title: “Source files should not have any duplicated blocks”
Description: “An issue is created on a file as soon as there is at least one block of duplicated code on this file”
NOTE: this might be the only SonarWay Java Rule with an id that doesn’t start with “squid:”
if anyone can help me find a link to this rule on rules.sonarsource.com it would be appreciated.
A related suggestion
- it would be nice if external links to the rule at https://rules.sonarsource.com were available from the web interface.
- it would also be nice if id formats were consistent (perhaps all numeric)