summaryrefslogtreecommitdiff
path: root/java/lint.go
diff options
context:
space:
mode:
author mattgilbride <mattgilbride@google.com> 2022-11-29 20:16:36 +0000
committer Matt Gilbride <mattgilbride@google.com> 2022-12-10 01:07:29 +0000
commit5aecabec5002b81381fd07d011d19ae6eaf2b556 (patch)
treea9281c47e11262c695612faa7eb536be0fcba55e /java/lint.go
parentc0f432edfd35c62c37f0eb1ebffd1492eaa23002 (diff)
Always run AndroidGlobalLintChecker.jar with lint invocations
AndroidGlobalLintChecker.jar provides a set of lint checks that should be run across the entire tree. Bug: 236558918 Test: manually tested, treehugger Change-Id: I2a868f1d78c969eefa2c29477fc8ecab1043df39
Diffstat (limited to 'java/lint.go')
-rw-r--r--java/lint.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/java/lint.go b/java/lint.go
index 7a6e5d9c1..07b962912 100644
--- a/java/lint.go
+++ b/java/lint.go
@@ -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).
Sbox(android.PathForModuleOut(ctx, "lint"),
android.PathForModuleOut(ctx, "lint.sbox.textproto")).