How to create a modify an existing rule

Thanks for replying Elena.

I want to modify the rule: Types should be named in PascalCase to allow for some special conditions such that “class MyClassDTO” is compliant. I am imaging that I can change something in the way the rule invokes (such as a regex expression) that will make it work the way I want. Optionally, I can create a new rule. I don’t understand how to do that.

When I am on the Rules tab, I have the rule selected and my custom quality profile (not the default one). The Change button only allows me to change the severity of the rule, not the rule itself. The Extend Description button allows be to add description (I think). What I don’t see is how to edit the rule or even to see how it works under the covers.

If I follow the doc instructions, it says to select the Show Templates Only filter. This shows 13 templates. I was expecting more but perhaps that was wrong. Why am I only seeing 13 templates? Is that all that is needed to produce all the rules in SQ?

Continuing…I can create a new custom rule from a template - that works but I really don’t know what I am doing just yet. I wanted to see the how the Types should be named in PascalCase rule was created so that I could just tweak it a little. For example, I could create a new rule based on the Track uses of disallowed classes but I need to come up with a regex pattern. Where can I find the regex pattern used by the Types should be named in PascalCase rule so I don’t have to do this from scratch?

Any help would be appreciated.