diff options
author | 2022-06-29 14:58:03 -0700 | |
---|---|---|
committer | 2022-07-12 15:19:08 -0700 | |
commit | 3f6462693e7666793dc6f3032b89490f90aa79fd (patch) | |
tree | 35f5b65f057d127bd1c5bb4cf41e1be1e882d8a4 /java/lint.go | |
parent | 7631bdf10977d912fa96f0ef202da91199706052 (diff) |
Downgrade/disable lint checks
Lint is being updated, and some of the
new checks have many failures or false
positives in the current android tree.
Bug: 215567981
Bug: 238784089
Test: Presubmits
Change-Id: I33a47d3c0404ca37f0334421a02bb80f745ae792
Diffstat (limited to 'java/lint.go')
-rw-r--r-- | java/lint.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/java/lint.go b/java/lint.go index e276345eb..c27ca9821 100644 --- a/java/lint.go +++ b/java/lint.go @@ -338,6 +338,14 @@ func (l *linter) lint(ctx android.ModuleContext) { ctx.PropertyErrorf("lint.disabled_checks", "Can't disable %v checks if min_sdk_version is different from sdk_version.", filtered) } + + // TODO(b/238784089): Remove this workaround when the NewApi issues have been addressed in PermissionController + if ctx.ModuleName() == "PermissionController" { + l.extraMainlineLintErrors = android.FilterListPred(l.extraMainlineLintErrors, func(s string) bool { + return s != "NewApi" + }) + l.properties.Lint.Warning_checks = append(l.properties.Lint.Warning_checks, "NewApi") + } } extraLintCheckModules := ctx.GetDirectDepsWithTag(extraLintCheckTag) |