I am trying to exclude files containing generated code in a sonar project.properties file.
I have added the following to project.properties
.
sonar.issue.ignore.allfile=.*generated.*,.*GeneratedCodeAttribute.*
I get the following error: ERROR: Caused by: Exclusions > Issues : Invalid format. The field does not define a regular expression: null
I have tried a lot of combinations. None of these work, same error.
sonar.issue.ignore.allfile=file:generated
sonar.issue.ignore.allfile=generated
sonar.issue.ignore.allfile=regex:generated
etc...
Any ideas on how to set this property in a project.properties
file?
I am aware that this can be done in the user interface, I need the project file syntax for multiple exclusions. I have read the source code, but cannot figure out what's missing.
Quoting the Documentation here (Emphasis is mine)