How to set sonar.issue.ignore.block in

Hello, I’m wondering how I might set the setting sonar.issue.ignore.block in the file?

I see from the SonarCloud UI the web form has the name for the block begin and end regex patterns as settings[sonar.issue.ignore.block][beginBlockRegexp] and settings[sonar.issue.ignore.block][endBlockRegexp], but this does not help me understand how to set this value in a .properties file.


1 Like


And then there is this

So. I am assuming the docs over here ( ) are just not accurate.

Hi @dschnare,

We recommend users to use the UI to configure this, for best experience. Consider the configuration via as an undocumented hack, not official supported that may or may not work reliably, use at your own risk.


Well that’s entirely misleading. The documentation clearly shows properties that can be set in a project analysis configuration file. Shouldn’t the documentation for SonarCloud reflect that the project configuration files are a hack or not even mention them then?

Is the file being deprecated for SonarCloud projects?

For anyone using project configuration files:


Are examples of how to set sonar.issue.ignore.allfile and sonar.issue.ignore.block.

You linked to the Analysis Parameters page, which doesn’t mention the sonar.issue.ignore.* properties, because this is not something we want to support. Consistent with that, the Narrowing the Focus page clearly says that the multi-value properties can only be set by the web interface. And again, it doesn’t mention the sonar.issue.ignore.* property names.

So I don’t see what is misleading here. The bottom line seems simple:

Do let me know what I’m missing.

Not for the moment.

Ah fair enough. Too bad the file doesn’t have parity with what can be set in the UI, it would have made it a great option to configure your project settings.

1 Like