Rewind to older version of SonarWay?

Must-share information (formatted with Markdown):

  • Version: sonarqube-10.7.0.96327/bin/linux-x86-64
  • how is SonarQube deployed: localhost (laptop)
  • what are you trying to achieve: Trying to use an older SonarWay profile for Java or alternatively if that isn’t possible, retrieve older versions of the SonarWay definition to create custom quality profile.
  • what have you tried so far to achieve this:
    • Cloned sonar-java repo to find consistent definition of SonarWay that I could import to SonarCloud (to no avail).
    • Exported quality profile to XML from Sonarqube to see format.
    • Found JSON definition of Java SonarWay (./sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/Sonar_way_profile.json)

Now I’m wondering where I could find either

  • an importable version of an older Java SonarWay definition;
  • a way to create an importable SonarWay definition from a Sonar_way_profile.json file.

Any luck?

Hi,

Welcome to the community!

There’s no easy way to do this. Your best bet is to start the way you already have - clone Sonar way. Then use it’s change log to - step by painful step - walk it back to the state you want to revert to.

 
HTH,
Ann