The return value of "uppercased" must be used

Then tell us:

  • What language is this for?


  • Which rule?

The return value of xxx must be used

  • Why do you believe it’s a false-positive/false-negative?

A switch statement in swift return a value implicitly since the latest release

  • Using


  • How can we reproduce the problem? Give us a self-contained snippet of code (formatted text, no screenshots)
enum MyEnum {
   case myCase

   var sonarCloudProblem: String {
      switch self {
      case myCase:

Hello @petemorris,

“since latest release” you mean 5.9? Are you using that version?

We currently only support up to 5.7, planning to add 5.8 and 5.9 support in the next release.