Jenkins+ Gradle +Lint对Android工程源码进行静态代码分析

http://blog.csdn.net/hwhua1986/article/details/50067089
http://blog.csdn.net/hwhua1986/article/details/50067089
http://blog.csdn.net/hwhua1986/article/details/50067089 


Jenkins+ Gradle +Lint对Android工程源码进行静态代码分析

标签: AndroidLint
  1568人阅读  评论(0)  收藏  举报
  分类:
   

目录(?)[+]

转载请注意出处: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.

Figure 1. Code scanning workflow with thelint tool

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 that lint 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
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值