简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM