Sonar.issue.ignore.multicriteria many files in one line?

SonaQube 9.1.

     sonar.issue.ignore.multicriteria=e1,e2,e3
     
     sonar.issue.ignore.multicriteria.e1.ruleKey=java:S115
     sonar.issue.ignore.multicriteria.e1.resourceKey=**/*Type.java
     
     sonar.issue.ignore.multicriteria.e2.ruleKey=java:S115
     sonar.issue.ignore.multicriteria.e2.resourceKey=**/*Enum.java

     sonar.issue.ignore.multicriteria.e3.ruleKey=java:S115
     sonar.issue.ignore.multicriteria.e3.resourceKey=**/NEStatus.java

Nice. This work fine.

But to much lines.

Is it possible smt like this?

 sonar.issue.ignore.multicriteria=e1
     
 sonar.issue.ignore.multicriteria.e1.ruleKey=java:S115
   sonar.issue.ignore.multicriteria.e1.resourceKey=**/*Type.java,**/*Enum.java,**/NEStatus.java

Hi,

No.

This syntax is verbose and painful and difficult. That’s why we advise using the UI instead.

 
:woman_shrugging:
Ann

I can’t use UI, because all sonar settings like:

sonar.exclusions
sonar.issue.ignore.multicriteria
sonar.analysis.mode
sonar.issuesReport.html.enable
sonar.jdbc.url

and many others are set in Jenkins’s job.
As result Jenkins’s job is override SonarQube UI settings.

Here official doc:

Note that only parameters set through the UI are stored in the database. For example, if you override the sonar.exclusions parameter via command line for a specific project, it will not be stored in the database