Merge changes I5a180544,Ifdf9bf97 into rvc-dev

* changes:
  Build transitive lint reports for apex modules
  Add environment variables to control lint checks
This commit is contained in:
TreeHugger Robot
2020-07-30 17:33:59 +00:00
committed by Android (Google) Code Review
8 changed files with 176 additions and 47 deletions

View File

@@ -1683,6 +1683,9 @@ func (j *Module) compile(ctx android.ModuleContext, aaptSrcJar android.Path) {
j.linter.compileSdkVersion = lintSDKVersionString(j.sdkVersion())
j.linter.javaLanguageLevel = flags.javaVersion.String()
j.linter.kotlinLanguageLevel = "1.3"
if j.ApexName() != "" && ctx.Config().UnbundledBuild() {
j.linter.buildModuleReportZip = true
}
j.linter.lint(ctx)
}
@@ -2738,6 +2741,10 @@ func (a *DexImport) JacocoReportClassesFile() android.Path {
return nil
}
func (a *DexImport) LintDepSets() LintDepSets {
return LintDepSets{}
}
func (j *DexImport) IsInstallable() bool {
return true
}