SonarLint in XCode for Swift

Hi, Is there any recommended way to run SonarLint locally in XCode for Swift language?

Thanks in advance

  • D
1 Like

Hi @DNair,

SonarLint is not available for Xcode. You can analyze your code using SonarCloud or SonarQube.

2 Likes

Thanks for the reply.

Can you please suggest any counterpart for Sonarlint in Xcode which is compatible with SonarQube.
In my organisation we have a central SonarQube server and the scanning is a part of build pipeline along with code merge.
My requirement is to have a local scanner which generate reports that is matching with the SonarQube scanner results before I push my changes to remote.

Thanks
D

Hi @DNair,

unfortunately swift is not supported by any SonarLint IDE integration. If your workflow foresee pull-requests you can setup pull-requests analysis to spot issues before they get into master branch.

1 Like

Thanks.
What about running sonar-scanner during iOS build? Can we run the scan locally in a branch?

Hi @DNair,

of course you can analyze locally if you wish.

A post was split to a new topic: 0 bugs & 0 Vulnerabilities

Are there any plans to add an integration to Xcode in the future?
Apple being somewhat “closed”, is it even possible? :thinking:

Hi @d4Rk ,

no, there are no plans.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.