79236006

Date: 2024-11-29 06:18:28
Score: 1
Natty:
Report link

Add below configuration in your sonar properties file

sonar.issue.ignore.block=e1
sonar.issue.ignore.block.e1.beginBlockRegexp=NOSONAR_BEGIN
sonar.issue.ignore.block.e1.endBlockRegexp=NOSONAR_END

and use annotations like this to ignore a specific code block

//NOSONAR_BEGIN

your code

//NOSONAR_END

this is compatible with the latest sonarQube versions i.e. 9.9+.

For more reference: https://docs.communityhealthtoolkit.org/contribute/code/static-analysis/#ignoring-all-rules-for-a-block-of-code

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: y_159