“Unused private types or members should be removed”.
I’m defining a rule using a tag. The tag name is unusedprivate.
In the Quality Gate section, I only want to enter a threshold value for the rule I defined using the tag, but I haven’t been able to do it this way.
Could you explain how I can do this?
A screenshot is attached.
Tags aren’t intended for this purpose, and rule parameters are attached to quality profiles, not quality gates.
Rule tags propagate to the issues raised by those rules. It should help you find and manage those issues as needed.
Rule parameters are set on a rule in a profile. Each time you add a parameterized rule to a profile, you can set a different value (if needed) for the parameter. That parameter value will be applied each time the profile is used. Profiles are used either when they’re set as the default for the language or when they’re explicitly assigned to a project.