Unhandled ambiguity in NIL_COALESCING_OPERATION grammar rule (Swift)

I’m new to sonarCloud.
I’m trying to scan my Swift project located on Bitbucket and I get the following error:

Unhandled ambiguity in NIL_COALESCING_OPERATION grammar rule, line 101

98: let responseDictionary = try? JSONSerialization.jsonObject(with: responseData, options: []) as? [String: Any]
99: if (responseDictionary != nil)
100: {
101: if (responseDictionary??["error"] != nil)
^

Any clues ??

Hi Regis,

Can you clarify, is this error coming from the Swift compiler or from the SonarCloud analysis results?

The scan completes successfully but I see this error in the pipeline log for sonarsource/sonarcloud-scan:1.2.1

Hi Regis,

It is difficult to tell where this error is coming from. Perhaps you can try disabling the SonarCloud task and running the build to determine if the problem really is related to SC.