What can we do with the template - Custom rule?

Hi all,
I saw a template option under the rules. And found out that we can use custom rule for Typescript but the rule need to be added with regular expression and flags. I even went through the documentation but there is no proper guide for it. Anyone has tried that one?

Thank you.
Sangay Dema

Hi Sangay,

For some languages, templates are available. They allow you to specify your custom variations on a theme. Those custom variations then show up as rules you can add to your Quality Profiles. To create a variation / custom rule from a template, just open the template of interest and fill in the form it presents you.

If you have specific questions about that, it will be helpful if you come back with screenshots showing what’s not clear.