How is it decided a rule goes into sonar way profiles or not?

Hi,

We have users asking why a particular critical rule is not part of sonar way profile and we can’t get them an answer. How is it decided a rule goes into sonar way profiles or not?

Thanks,
Gabriel

Hey there.

These are rules are determined as

  • no-brainers – applying to nearly every kind of project
  • non-controversial – not heavily contested
  • non-conflicting – one rule won’t override another in the profile (often the case with style-based rules, like where brackets go)
  • low number of false-positives (won’t be noisy for developers)

Of course, humans make these determinations so those decisions can also be challenged. And, these profiles serve most of our users pretty well.