Add Custom Rules in Sonar Cloud

Template for a good new topic, formatted with Markdown:

  • ALM used (GitHub, Bitbucket Cloud, Azure DevOps)
  • CI system used (Bitbucket Cloud, Azure DevOps, Travis CI, Circle CI
  • Scanner command used when applicable (private details masked)
  • Languages of the repository
  • Only if the SonarCloud project is public, the URL
    • And if you need help with pull request decoration, then the URL to the PR too
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
  • Steps to reproduce
  • Potential workaround

Is it possible to add Custom Rules in SonarCloud

Manish Prasad

Hello @manish_prd,

Welcome to the SonarSource community. :wave:. We hope you’ll enjoy it.

About your question, the answer is no, adding custom rules to SonarCloud is not possible, and this is currently not planned in the foreseable future.
If you miss a rule and you believe it can be useful to all developers in the language you’re considering, then I suggest that you submit the rule idea through this forum. If you decide to do so, please provide all the details as you can see on rules already implemented (description, compliant/non compliant code example, rule type, severity, references)