The documentation includes general guidance on adding coding rules, including which languages support adding custom rules, and general guidance on how to go about it.
If the docs don’t answer your question, please tell us:
- What language are you writing rules for? Typescript
- What have you tried, and what’s your challenge / stumbling block? I can see custom rules on the SonarQuebe portal, but I do not know how to implement the custom rules.
- I want to create a custom rule that ensures that all filenames start with “alt” and that each function name starts with “Alt”.
- I also want all interfaces to start with “Alt_I” with the next character in upper-case.
- I have seen SonarQuebe work, but this is my first time setting it up. Please help; I need it. Thanks.
Please share the relevant code snippet, along with any error messages you’re encountering: