Thanks Dejan. It was regarding code rule and I have setup it and its working now. But now there is another issue popped up. We see below error in all our pipelines .Please check.
Starting: SonarCloudPublish
Task : Publish Quality Gate Result
Description : Publish SonarCloud’s Quality Gate result on the Azure Pipelines build result. To be used after the actual analysis.
Version : 1.15.2
Author : sonarsource
Help : Version: 1.15.2. More Information
##[error][SQ] Task failed with status FAILED, Error message: Validation of project failed:
o Date of analysis cannot be older than the date of the last known analysis on this project. Value: “2023-11-30T12:28:35+0000”. Latest analysis: “2023-11-30T12:28:44+0000”. It’s only possible to rebuild the past in a chronological order.
Finishing: SonarCloudPublish