How do we change the 'parameters' to rules?

Hi.

I am using SonarQube 8.1, and would like to learn how to change rule “parameters”.

Consider rule php:S107, which currently flags functions with more than 4 parameters. How could I, for example, set this to 6?

Thank you!

Hey Alex,

For rules that are parameterized, they can be activated in the right Quality Profile with the desired value (or changed once activated).

See below, where I’m a Quality Profile Admin and have a non built-in Quality Profile for PHP (Sonar Way 2) with the rule activated.

Screenshot 2020-03-04 at 09.39.30

1 Like