Swift 5.7 support in SonarCloud

We are making use of Swift 5.7 (Swift.org - Swift 5.7 Released!) and the “New shorthand syntax for common boilerplate code, including if let statements and multi-statement closure type annotations”.

As seen on Swift | SonarCloud Docs, SonarCloud only supports Swift 3 up to Swift 5.6 at the moment.

At the moment, we are getting “ERROR: String is not parsed” errors in the SonarCloud Analysis when making use of new unwrapping syntax in Swift 5.7.

Is there a ETA when Swift 5.7 will be supported?

1 Like

Hi Ashok, we have started the work to support the new Swift 5.7 features, including the if-let shorthand syntax.

If everything goes well, by the end of October, SonarCloud should thus support this new syntax.

Thanks and Regards
Francois Mora


Any news on this as it’s now November? :see_no_evil:

The warnings we get from this are quite annoying for valid Swift syntax. :disappointed:

Hey there.

Swift 5.7 should now be supported – can you give more details about the warnings you’re getting?

1 Like

Ironically I haven’t seen anymore false positives in this area since I posted, so hopefully it’s fixed now and not that we haven’t hit this again since. :smile: Thanks for the response though :smile:

1 Like

2 posts were split to a new topic: S1854 FP on Swift 5.7 syntax