Jenkins+ Gradle +Lint对Android工程源码进行静态代码分析
2017-01-18 22:34
447 查看
http://blog.csdn.net/hwhua1986/article/details/50067089
http://blog.csdn.net/hwhua1986/article/details/50067089 http://blog.csdn.net/hwhua1986/article/details/50067089
标签: AndroidLint
2015-11-27 10:31 1568人阅读 评论(0) 收藏 举报
分类:
Jenkins(32)
Lint Gradle(9)
版权声明:本文为博主原创文章,未经博主允许不得转载。
目录(?)[+]
转载请注意出处:http://blog.csdn.net/hwhua1986/article/details/50067089
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
Figure 1. Code scanning workflow with the
Application source filesThe source files consist of files that make up your Android project, including Java and XML files, icons, and ProGuard configuration files.The
recommended that you correct any errors that
配置svn
配置构建操作
配置分析报告生成步骤
报告详细列表
http://blog.csdn.net/hwhua1986/article/details/50067089 http://blog.csdn.net/hwhua1986/article/details/50067089
Jenkins+ Gradle +Lint对Android工程源码进行静态代码分析
标签: AndroidLint2015-11-27 10:31 1568人阅读 评论(0) 收藏 举报
分类:
Jenkins(32)
Lint Gradle(9)
版权声明:本文为博主原创文章,未经博主允许不得转载。
目录(?)[+]
转载请注意出处: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
linttool processes the application source files.
Figure 1. Code scanning workflow with the
linttool
Application source filesThe source files consist of files that make up your Android project, including Java and XML files, icons, and ProGuard configuration files.The
lint.xmlfileA configuration file that you can use to specify any
lintchecks that you want to exclude and to customize problem severity levels.The
linttoolA static code scanning tool that you can run on your Android project from the command-line or from Eclipse. The
linttool 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
lintdetects before publishing your application.Results of
lintcheckingYou can view the results from
lintin 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 构建结果查看
点击报告报告详细列表
相关文章推荐
- Jenkins+Gradle实现android开发持续集成问题汇总
- Android---动画机制(四)----SVG
- Activity注册InputChannel和处理Event(六)
- Dalvik字节码 Smali语法
- Android-Universal-Image-Loader 学习笔记(五)线程池分析
- Event分发源码分析(五)
- 利用Jenkins玩转Android自动打包发包
- Event处理(四)
- Android内存优化(使用SparseArray和ArrayMap代替HashMap)
- Android Studio修改虚拟机使用的内存大小
- Event的获取和处理(三)
- Gradle for Android(三)多渠道打包、配置签名信息
- 使用 Jenkins 实现持续集成 (Android)
- android开发学习——day5
- EventHub分析(二)
- 一.jenkins+github+gradle 实现android自动化打包全攻略(MAC版)
- InputManagerService分析(一)
- android Recycle view 放置在能够滑动的view(scrollerview等)自动上划显示的问题
- Android 之 悬浮窗口
- 张高兴的 Xamarin.Android 学习笔记:(四)常用控件