2014-04-01 102 views
2

请帮忙。当我在终端中运行命令gradle lint,我看到下面的输出:Gradle Jenkins皮棉报告

: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 issues found

但是,当我从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: 

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

回答

1

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