OCLint-iOS-OC项目几种简单使用
来源:互联网 发布:手机淘宝开店不成功 编辑:程序博客网 时间:2024/05/18 09:00
OCLint-iOS-OC项目几种简单使用
未完待续
OCLint简介
OCLint is a static code analysis tool for improving quality and reducing defects by inspecting C, C++ and Objective-C code and looking for potential problems like possible bugs, unused code, complicated code, redundant code, code smells, bad practices, and so on.
安装
$ brew tap oclint/formulae
$ brew install oclint
Using OCLint with xcodebuild
xcodebuild -target DemoProject -configuration Debug -scheme DemoProject
Using OCLint with xctool
安装
$ brew install xctool –HEAD
xctool -reporter json-compilation-database:compile_commands.json build
Using OCLint with xcpretty
安装
$ brew install xcpretty
xcodebuild [flags] | xcpretty -r json-compilation-database -o compile_commands.json
Using OCLint in Xcode
Add a new target in the project, and choose Aggregate as the template.
Name the new target, here we simply call it “OCLint”, you could have more than one targets that focus on different aspects of the code analysis.
- Add a new build phase in the target we just created. Choose Add Run Script for the phase type.
- Choose the correct build scheme, here we choose OCLint.Click to build, or use the shortcut Command+B.
- Click to build, or use the shortcut Command+B.
- When the progress bar scrolls to the very right, the analysis is done, then we can check out the analysis results same as compile warnings.
- OCLint-iOS-OC项目几种简单使用
- [OCLint]iOS项目中使用OCLint指导手册
- iOS项目的静态代码扫描之OClint使用
- 使用OClint进行iOS项目的静态代码扫描
- 【iOS】OC-Quartz2D简单使用
- iOS项目的静态代码扫描之OClint安装
- oclint-xcodebuild 的使用
- OCLint 安装与使用
- OCLint 安装与使用
- OCLint安装与使用
- OCLint 安装与使用
- iOS多线程几种不同方式简单使用
- 黑马程序员-IOS-OC基础-Foundation框架的简单使用
- iOS中OC与JS交互WebViewJavascriptBridge的简单使用
- iOS - oc与js交互的几种方式
- iOS - oc与js交互的几种方式(1)
- oc block简单使用
- IOS 几种简单常用动画
- 一起Talk Android吧(第三十五回:Android中的Activity七)
- MySQL授予权限
- 深入了解php底层机制
- 搜索二叉树的查找、插入和删除
- 洛谷·P2024 食物链(多条件并查集)
- OCLint-iOS-OC项目几种简单使用
- 小白入门---Ajax编程
- 拖动无标题栏的cef3窗口
- 计算机经典书籍
- org.apache.spark.shuffle.FetchFailedException:Failed to connect to异常
- 由前序遍历和中序遍历重构二叉树
- 图像处理19:简单阈值
- AOP用AspectJ开发
- JAVA编程思想学习记录(一)