Branch | Status | :------------------------------------------------------------------------------------------------------------------------------------------:| SonarQube Plugin for Swift ================================ This is an open source initiative for Apple Swift language support in SonarQube. The structure of the plugin is based on the sonar-objective-c plugin. In SonarQube under Quality Profiles the used…
This is an open source initiative for Apple Swift language support in SonarQube.
The structure of the plugin is based on the sonar-objective-c plugin.
In SonarQube under Quality Profiles the used Linter can be specified by selecting either the SwiftLint Profile or the Tailor Profile as Default profile for Swift Projects:
Edit the sonar-project.properties file to match your Xcode iOS/MacOS project
The good news is that you don’t have to modify your Xcode project to enable SonarQube!. Ok, there might be one needed modification if you don’t have a specific scheme for your test target, but that’s all.
Update (once per plugin update)
Install the lastest plugin version
Copy run-sonar-swift.sh somewhere in your PATH
If you still have run-sonar-swift.sh file in each of your project (not recommended), you will need to update all those files.
Contributing
Thank you for your interest in the project! Contributions are welcome and appreciated.
Make sure to read these guides before getting started:
评论