Preview sonar profile feature?

I might be missing info here so it might not be the best question:

Imagine handling multiple repos on which dev are not in the company anymore. I want to enforce a new sonar profile that of course will impact old repos and the build will not be green anymore. Imagine on that repos somebody is making a small change, but with the new profile it will have a lot of work.
Somehow I wanted to see that before making the change.

Another way of thinking: your repos are your car. The sonar profile is a new color of your car. Why I can’t have a “preview” of the new color?

Later edit:
I think I have more details from chat gpt:

By understanding how sonar.analysis.mode=preview orchestrated a no-impact, issues-only analysis, teams could enforce quality gates early while keeping their central SonarQube instance clean. Its deprecation led to more robust, integrated solutions like SonarLint and built-in PR analysis.

Hi,

* nods * Yes, this is a common scenario.

It doesn’t have to be that way. This is one of the many reasons we advocate Clean as You Code. The idea here is that you would focus on - and Quality Gate on - only what changed either in the PR or since your last production deployment. That means that your Quality Gate would have only conditions “on New Code”. And you could introduce new rules without fear of losing the ability to release legacy projects (which inevitably broke those new rules years ago).

Ehm… I guess that model was trained on old data. Very old. :sweat_smile:. That hasn’t been a valid analysis parameter for many, many, many years.

 
HTH,
Ann

Hello. Yes, I know that flag is old, like me :). Thanks for your response. Will review the quality gate together with the team.