We have switched to the new sonar 8.3 and now we use it together with another part of our company, but we need different configurations to sonar.
The first big problem is, that we have a quality gate, that allows only 3% code duplication, but we want to exclude Typescript tests (**/*.spec.ts) from it, but only for our team. The idea was, to disable it by command line. For that I’ve tried to use “-Dsonar.cpd.exclusions” for that. But there was no different after using it. Can I still use this property? It was removed from the docs in 7.8 or something like that but I never read that it’s deprecated.
The second problem is, that we have a different quality gate. At the moment, when we push a new project to gitlab, the pipeline run sonar and the project will be created in sonar with the default quality gate and we have to contact one of our sonar admins to change that.
The last problem is the default compare branch. By default it use the master branch, but in most of our projects we merge to develop.
Would be nice if we can set this settings in the command line, to not need to have an admin to change things every week. Is there a way at least for some of the problems?