When you’re ignoring an issue on multiple criteria, you’re telling SonarQube to not raise issues on that rule entirely (you can get more fine-grained than that, such as not to raise issues on that rule except on a certain threshold).
So using the same format for S1541 as you’ve shown for S1135 should work just fine.
Apologies if I was not clear on what I’m trying to achieve. The particular rule, I want is disabled, I’m trying to enable it via sonar-project.properties.
sonar.issue.ignore.multicriteria.r2.ruleKey=java:S1541
sonar.issue.ignore.multicriteria.r2.resourceKey=**
sonar.issue.ignore.multicriteria.r2.Threshold=5 # <--- This isn't working.
I want to know, how can I pass custom parameter to this.
Ignoring issues on multiple criteria only works to suppress issues. It can’t be used to turn a rule on. To do that (without affecting the original Quality Profile) – you’d want to extend the existing profile and enable the rule.