安装
1 | brew tap oclint/formulae |
更新
1 | brew update |
在 bash_profile
里添加
1 | OCLINT_HOME=/path/to/oclint-release |
xcodebuild -scheme TrainIOS -workspace TrainIOS.xcworkspace clean && xcodebuild -scheme TrainIOS -workspace TrainIOS.xcworkspace -configuration Debug | xcpretty -r json-compilation-database -o compile_commands.json
oclint-json-compilation-database -e Pods – -report-type html -o oclintReport.html