S109 - magic numbers on attributes

hi @donatasj87

We’ve had an internal talk. We agree that in your case this rule is creating a lot of noise. However, for now we don’t plan to change it to detect all exceptions that it would have to handle.

  • the rule is not part of SonarWay (we know it can generate quite some noise, so by default it’s turned off)
  • it would require quite some effort to tweak the rule to make it less noisy, and we don’t plan to invest that effort any time soon

Thank you for the feedback! We’ll keep it in mind for the future.