Jenkins+ Gradle +Lint对Android工程源码进行静态代码分析
来源:互联网 发布:永久免费空间php 编辑:程序博客网 时间:2024/06/05 04:01
转载请注意出处:http://blog.csdn.net/hwhua1986/article/details/50067089
Lint的介绍
官网介绍:
The Android linttool is a static code analysis tool that checks your Android project sourcefiles for potential bugs and optimization improvements for correctness,security, performance, usability, accessibility, and internationalization.
Android线头工具是一个静态代码分析工具,检查你的Android项目源文件为潜在的bug和优化改进正确性,安全性、性能、可用性、可访问性和国际化。
静态检查原理:
Figure 1 shows how the lint
tool processes the application source files.
- Application source files
- The source files consist of files that make up your Android project, including Java and XML files, icons, and ProGuard configuration files.
- The
lint.xml
file - A configuration file that you can use to specify any
lint
checks that you want to exclude and to customize problem severity levels. - The
lint
tool - A static code scanning tool that you can run on your Android project from the command-line or from Eclipse. The
lint
tool checks for structural code problems that could affect the quality and performance of your Android application. It is strongly recommended that you correct any errors thatlint
detects before publishing your application. - Results of
lint
checking - You can view the results from
lint
in the console or in the Lint Warnings view in Eclipse. Each issue is identified by the location in the source files where it occurred and a description of the issue. Jenkins配置如下:
新建job
配置svn
配置构建操作
配置分析报告生成步骤
5.4.3 构建结果查看
点击报告
报告详细列表
0 0
- Jenkins+ Gradle +Lint对Android工程源码进行静态代码分析
- Jenkins+ Gradle +Lint对Android工程源码进行静态代码分析
- Jenkins+Gradle+findbugs对Android工程源码进行静态代码分析
- Jenkins+Gradle+checkstyle对Android工程源码进行静态代码分析
- Jenkins+Gradle+pmd对Android工程源码进行静态代码分析
- Jenkins+Gradle+findbugs对Android工程源码进行静态代码分析
- Jenkins+Gradle+checkstyle对Android工程源码进行静态代码分析
- Jenkins+maven+findbugs对java代码进行静态代码分析
- Jenkins+maven+checkstyle对java代码进行静态代码分析
- Jenkins+maven+pmd对java代码进行静态代码分析
- Jenkins+findbugs对java代码进行静态代码分析
- jenkins安装pmd对代码进行静态分析
- android静态代码分析工具Android lint
- SourceInsight与PC-LINT集成进行代码静态分析
- SourceInsight与PC-LINT集成进行代码静态分析
- SourceInsight与PC-LINT集成进行代码静态分析
- 静态代码分析工具lint
- android studio 使用Lint对应用进行分析
- SQL2000/2005&2008中master数据库备份与恢复
- 超时 调用Webservice超时怎么办
- Asp.net - Razor - 将Model中变量的值赋值给Javascript变量
- RestTemplate实践
- oracle数据库关闭和启动命令
- Jenkins+ Gradle +Lint对Android工程源码进行静态代码分析
- Mac-查看开关机记录
- 浅谈C#垃圾回收
- Android入门:增删改查通讯录
- Linux缓存机制之块缓存
- 数据结构系列——后缀树(附Java实现代码)
- mybatis xml文件 id冲突错误 findUserIDById is ambiguous in Mapped Statements collection
- Android 控件布局常用属性
- 织梦dedecms后台文章列表显示作者字段的方法