Merge "Always run AndroidGlobalLintChecker.jar with lint invocations"

This commit is contained in:
Matt Gilbride
2022-12-12 18:48:21 +00:00
committed by Gerrit Code Review
2 changed files with 5 additions and 0 deletions

View File

@@ -366,6 +366,9 @@ func (l *linter) lint(ctx android.ModuleContext) {
} }
} }
l.extraLintCheckJars = append(l.extraLintCheckJars, android.PathForSource(ctx,
"prebuilts/cmdline-tools/AndroidGlobalLintChecker.jar"))
rule := android.NewRuleBuilder(pctx, ctx). rule := android.NewRuleBuilder(pctx, ctx).
Sbox(android.PathForModuleOut(ctx, "lint"), Sbox(android.PathForModuleOut(ctx, "lint"),
android.PathForModuleOut(ctx, "lint.sbox.textproto")). android.PathForModuleOut(ctx, "lint.sbox.textproto")).

View File

@@ -56,6 +56,8 @@ var PrepareForTestWithJavaBuildComponents = android.GroupFixturePreparers(
"build/make/target/product/security": nil, "build/make/target/product/security": nil,
// Required to generate Java used-by API coverage // Required to generate Java used-by API coverage
"build/soong/scripts/gen_java_usedby_apex.sh": nil, "build/soong/scripts/gen_java_usedby_apex.sh": nil,
// Needed for the global lint checks provided from frameworks/base
"prebuilts/cmdline-tools/AndroidGlobalLintChecker.jar": nil,
}.AddToFixture(), }.AddToFixture(),
) )