Ignore block in Sonarqube

Hello, Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension) Sonarqube 9.9
  • how is SonarQube deployed: Docker(not sure)
  • what are you trying to achieve: ignore few blocks of code using sonar.issue.ignore. I tried regex in both UI and sonar.properties file but it never works.

I am using C programming language. I tried setting regex in UI and use in the code but it is not working. I could still see the code smell. I tried using regex in properties file too though it is not recommended but it doesn’t work.

You’ll have to provide more details about what you’ve tried so far!

  • What regex pattern did you use?
  • The specific code where you tried to implement the start/end block?
  • How did you determine that it didn’t work as intended?