Customize a rule in SonarQube

Hello,
Is tit possible to customiez a rule in SonarQube ?
I present my problem.
I would like ti apply the rule ( AInsufficientCommentDensity : Source files should have a sufficient density of comment lines) only for files wich have more than N line of code.
Thanks.
Frederic.

Hi,

Some rules are built to be customized via parameter values, but not that one. To do what you describe, you’d need to re-implement the rule. If you decide to go that route, feel free to open new topics in the ‘Writing rules’ category for specific development questions.

 
HTH,
Ann