Code Quality and Security for Swift

SonarSource delivers what is probably the best static code analyzer you can find for Swift. Based on our own Swift compiler front-end, it uses the most advanced techniques (pattern matching, dataflow analysis) to analyze code and find Code Smells, Bugs, and Security Vulnerabilities. As with everything we develop at SonarSource, it was built on the principles of depth, accuracy, and speed.

SonarSource's Swift analysis has a great coverage of well-established quality standards. This capability is available in IntelliJ IDEA for developers (SonarLint) as well as throughout the development chain for automated code review with self-hosted SonarQube or cloud-based SonarCloud.

Supported Language Versions and Operating Systems
  • Swift 3, Swift 4 and Swift 5
  • Microsoft Windows, Linux and Mac OS X for runtime environment
Metrics

SonarSource's Swift analysis supports all the standard metrics implemented by SonarQube including Cognitive Complexity. Additionally, it supports the import of coverage reports generated by Xcode 7+.

Use in developer edition

See all editions


Issue Tracker