Cognitive complexity for Swift projects

Hi, I have a Swift project setup with my company and we’d like to view the cognitive complexity metrics. Our Android app has access to this, however the iOS project only display cyclomatic complexity.

I noticed in this thread that there were improvements being made to the scanner but we don’t have this metric appearing yet. The thread went off discussing .NET projects so I wasn’t sure exactly the status of the Swift scanner. We have automatic analysis turned on.

This is what we see under Complexity in the Measures section. Is there something we need to enable? Is this supported currently for Swift projects?

Hi,

Welcome to the community!

There’s nothing you need to enable; you’ll get this automatically once it’s deployed. Unfortunately, I don’t have a timeline for you.

 
Ann