Must-share information (formatted with Markdown):
-
which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
SonarQube Developer Edition Version 9.7.1 (build 62043)
Unknown Swift version as we can’t find any information about it in our instance. -
what are you trying to achieve
Wer are trying to analyse a Swift source code, it’s partially working and only 6 files are being analysed on a +1000 files project.
We have a piece of code that looks like this:
@objc
private func notify() {
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 0.3) { [weak self] in
guard let self: FooViewController = self else {
return
}
//...
}
}
SonarQube stops when it attempts to analyse self
, putting an arrow (^) at the f
from the first self
.
- what have you tried so far to achieve this
We tried to update the Swift plugin but it seems to not be installed? It seems to be a embeed tool on SonarQube developer edition. The project uses Swift 5.1 (guard let self = self else {}
seems to be supported since swift 4.2).
As addition, the project compiles just fine on Xcode 13.x.