SonarQube custom rule

Hi,

It’s not possible, the only way to do it is by having 2 different rules, one for each situation.

Also note that in SonarQube 10.2 the old rule severity was completely removed and replaced by something else: SQ 10.2 turn off rule severity is a breaking change - #11 by Chris

2 Likes