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.


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

It is sonarqube- The scanner is sonar-scanner-

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?