Closed sebastien-marichal closed 1 month ago
@sebastien-marichal Isn't this duplicate of #3102 ?
Probably, although this ticket seems to be more up-to-date.
setProfile
does not seem to be as used in test classes as it was back in 2020.
Please move relevant parts there and close this one
Close as duplicate of #3102
In Tests.analyzeProject, we use
setProfile
which is deprecated and probably not even compatible with S4NET (I am not sure we use thesonar.profile
option).It is not as simple as replacing the call,
associateProjectToQualityProfile
requires the project to already exist as it calls theapi/qualityprofiles/add_project
endpoint which assumes that the project exists.One approach could be:
The same goes for the VBNET version. Usage outside the Tests class should be checked as well.