资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

iOScodeview-创新互联

1.环境配置iOScodeview

oclint:http://oclint.org/

创新互联公司是专业的揭东网站建设公司,揭东接单;提供网站建设、网站制作,网页设计,网站设计,建网站,PHP网站建设等专业做网站服务;采用PHP框架,可快速的进行揭东网站开发网页制作和功能扩展;专业做搜索引擎喜爱的网站,专业的做网站团队,希望更多企业前来合作!

xcpretty:https://github.com/supermarin/xcpretty

使用Mac安装xcpretty过程可能会出现自带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 --default

2.代码扫描

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有网友给出解决方案:https://github.com/wuwen1030/oclint_argument_list_too_long_solution/tree/master

3.oclint默认的rule

http://docs.oclint.org/en/stable/howto/thresholds.html


分享名称:iOScodeview-创新互联
网站地址:http://cdkjz.cn/article/hppgg.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

业务热线:400-028-6601 / 大客户专线   成都:13518219792   座机:028-86922220