
oclint:http://oclint.org/

xcpretty:https://github.com/supermarin/xcpretty
使用Mac安裝xcpretty過程可能會出現(xiàn)自帶ruby版本錯誤,需要升級ruby
$ curl -L get.rvm.io | bash -s stable $ source ~/.rvm/scripts/rvm $ rvm list known $ rvm install 2.2.0 rvm use 2.2.0 --default2.代碼掃描
xcodebuild clean build -sdk iphonesimulator -arch "x86_64" ONLY_ACTIVE_ARCH=NO VALID_ARCHS="i386 x86_64" | xcpretty -r json-compilation-database cp build/reports/compilation_db.json compile_commands.json oclint-json-compilation-database -e Pods -- -rc=LONG_LINE=200 -rc=NCSS_METHOD=100 -o=report.html如果掃描的生成的compile_commands.json文件過大,oclint-json-compilation-database會提示出錯“OSError: [Errno 7] Argument list too long”
https://github.com/oclint/oclint/issues/233有網(wǎng)友給出解決方案:https://github.com/wuwen1030/oclint_argument_list_too_long_solution/tree/master
3.oclint默認(rèn)的rule
http://docs.oclint.org/en/stable/howto/thresholds.html
分享文章:iOScodeview-創(chuàng)新互聯(lián)
分享鏈接:http://chinadenli.net/article16/hppgg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站建設(shè)、外貿(mào)建站、搜索引擎優(yōu)化、網(wǎng)站維護、網(wǎng)站設(shè)計公司、定制開發(fā)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容