which versions are you using (SonarQube 8.9.1.44547)
I like to script a way to find the difference in code smells between two branches (or SHAs)
On a Linux box I tried this bash script sonar_diff : and run sonar_diff workgit master my_sidebranch.
I have the sonarqube server running on https://sonarqube.services and the project is called workgit
For the project in question it is poisoned with ~400 warnings, so it is not fun to find 10 new warnings out of 400 … or 410.
The only viable approach I have now is to look at the sonarqube webpage and see which code smells are made within the last few hours - right after pushing the branch. That is not sufficient, but a poor mans version of something usable…
First, I need to point out the option to set the New Code Period of one branch based on another branch. There are a few… quirks in the algorithm that have been improved since 8.9, but the ability is there, and should help you toward your goal.
However, based on your URLs, I’m guessing you’re using Community Edition, and you would need a commercial edition($) to use it.
So based on what you apparently have…
Your search URLs aren’t limited by types, which may narrow the result set and make things easier.
dear @ganncamp I am a paying customer (Developer version)… a happy one.
Is there a newer LTS where the relevant features are in?
I am an LTS fanboy but if you say that there is golden stuff in 9.5 I can upgrade soon.
Changes to how I can control how/what “New Code” is reported is also very interesting. in 8.9 I almost never use the New Code … but that is another matter.
The current LTS is 8.9.8, and it does have the ability to set New Code Period to a reference branch. And, as I alluded, there are some problems in 8.9 related to how new code is calculated when that setting’s used. And it would still be worth trying in 8.9. Maybe you won’t hit the problem situation.