How to override java rules in Developer Edition

I’m trying to customize an existing Java rule S1451: Track lack of copyright and license headers to align with our existing copyright year template. I created my own quality profile out of the builtin one, and then opened thee rule S1451 in the Rules page. However I don’t see the option of override or similar button no matter if setting the rule active or inactive.

BTW, I’m evaluating Developer Edition of SonarQube.

Any help will be greatly appreciated.

Thanks,
Jingkun

As noted in the template post, what version of SonarQube are you using?

It is sonarqube-10.5.0.89998. The scanner is sonar-scanner-5.0.1.3006-windows.

Thanks – have you actually added the rule to the Quality Profile?

This is what it should like, to let you modify the rule once it has been added.

Hi Colin,

Thank you very much for your help. I successfully got rule S1451 customized. My customized rule got taken. However, the copyright year varies, e.g, 2019, 2020-2023. How is this variance considered in the rule check. Should isRegularExpression set to true? Where can the regular expression be configured if so?

Thanks,
Jingkun