user2506411
user2506411

Reputation: 313

Clang Static Code Analyzer Output Format for Xcode project

I am trying to run inbuilt Xcode Clang static analyzer on ObjectiveCProject. I want to know if it is possible to transform the Obj-C Analyzer output into a another format that sonar plugin can consume. Since there is no Sonar plugin yet for objectiveC that has full features.

Upvotes: 0

Views: 1604

Answers (1)

rakmoh
rakmoh

Reputation: 2963

This is the command you can use to run clang for the iOS application:

scan-build -o static_analyzer_results xcodebuild -configuration Debug -sdk iphonesimulator

This creates the html reports in static_analyzer directory. Check this for reference:

http://clang-analyzer.llvm.org/scan-build.html

Not sure if you can feed them into Sonar but they are well formatted.

Upvotes: 1

Related Questions