android - Gradle Jenkins Lint 报告

标签 android xml jenkins gradle lint

请帮忙。当我在终端中运行命令 gradle lint 时,我看到以下输出:

:facebook:lint                 
Ran lint on variant release: 65 issues found
Ran lint on variant debug: 65 issues found
Wrote HTML report to file:new/facebook/build/lint-results.html
Wrote XML report to new\facebook\build\lint-results.xml
:msmandroidapp:lint                 
Ran lint on variant release: 71 issues found
Ran lint on variant debug: 71 issues found
Wrote HTML report to file:new/msmandroidapp/build/l
int-results.html
Wrote XML report to new\msmandroidapp\build\lint-results.xml
:ringprogress:lint                 
Ran lint on variant release: 4 issues found
Ran lint on variant debug: 4 issues found
Wrote HTML report to file: new/ringprogress/ringprogress/build/lint-results.html
Wrote XML report to new\ringprogress\ringprogress\build\lint-results.xml

我只关心 :msmandroidapp:lint 结果。它显示 找到 71 个问题

但是,当我从 Jenkins 运行相同的程序时,我发现 较少 检测到 :msmandroidapp:lint 的问题(仅 67 个)。我查看了报告,发现在报告中我也有 67 个问题。下面是一段 html 报告:

Lint Report
Check performed at Tue Apr 01 14:35:13 FET 2014.
8 errors and 59 warnings found: 

那么检测到的问题数量的差异来自哪里?也许它们被其他项目覆盖了?

最佳答案

这可能是一个 lint 版本控制问题。您使用的 Android lint Jenkins 插件可能与当前的 Android SDK lint 工具不是同一个版本。这意味着 Jenkins lint 可能会让某些事情“通过”,您的本地 Android SDK lint 会将相同的代码标记为错误。

关于android - Gradle Jenkins Lint 报告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22785395/

相关文章:

android - 使用 BaseAdapter 过滤自定义 ListView

.net - 防止 XmlTextReader 扩展实体

xml - IXMLDocument.SaveToFile() 使用制表符而不是空格进行缩进

javascript - 如何将xml文档对象转换为字符串?

java - hudson 和 Jenkins 有什么区别?

batch-file - 通过 windows 命令行更新 CCRC View 并将其集成到 Jenkins 中

Android TV 无法启动正确的 Activity

java - 在Android中通过扬声器强制输出声音

java - 模拟 android.content.res.Configuration 类型的对象并为其分配语言环境

ubuntu - gpg : no valid OpenPGP data found