Hi here,
+1 from me for only newly intorduced issues compared to Leak period.
Here is the story:
1. Project exists for some period of time and already has technical dept and issues
2. The team decided to do quality control with Sonar, but in two forms:
2a. with analyzing current master on every merge to track what happens and see nice charts
2b. with adding an actual code quality gate. if change request introduces new issue reject it to merge. This part is going to be based on sonarlint
3. So as result it is expected to have some number of not solved issues, failure if new were introduced with new change request
4. The team will eventually solve all issues (let us hope so), but will not create new ones
From CLI point of view, it could look like
sonarlint --src "src/**" --tests "src/tests/**" -u --new-from-leak-period --max-new 0
--new-from-leak-period - compares current report with latest available on SonarCube for leak period
--max-new N - fails the build (exit code != 0) if new issues count is > 0
Please share your view. Probably it could be achieved in another way.
Do you think it is possible to add to the roadmap and implement?
Thank you and have a nice day,
Illia Svyrydov