diff options
author | 2023-02-26 21:15:25 -0800 | |
---|---|---|
committer | 2023-02-28 11:31:15 -0800 | |
commit | 1021ccda6b7c2a8737b4468c215a73ccd99b5cb0 (patch) | |
tree | 08a8029456d9d280997814dc2ecbac2358991892 /java/lint.go | |
parent | 8ecedd4dfc3ccd1c2a4c384e9a6de3906a33a1b4 (diff) |
Disable strict_updatability_linting
strict_updatability_linting currently only makes it so
that NewApi can't be added to the lint baseline.
However, since we're updating NewApi to work on a lot
more apis than before, we need to baseline many issues
across the android tree. Temporarily disable
strict_updatability_linting so that we can add these
baselines.
Bug: 193460475
Test: Presubmits
Change-Id: I8d92df95a46e9b903f0cc0e3be56f17722c50430
Diffstat (limited to 'java/lint.go')
-rw-r--r-- | java/lint.go | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/java/lint.go b/java/lint.go index 07b962912..81666bfbb 100644 --- a/java/lint.go +++ b/java/lint.go @@ -275,13 +275,14 @@ func (l *linter) writeLintProjectXML(ctx android.ModuleContext, rule *android.Ru cmd.FlagForEachArg("--error_check ", l.properties.Lint.Error_checks) cmd.FlagForEachArg("--fatal_check ", l.properties.Lint.Fatal_checks) - if l.GetStrictUpdatabilityLinting() { - // Verify the module does not baseline issues that endanger safe updatability. - if baselinePath := l.getBaselineFilepath(ctx); baselinePath.Valid() { - cmd.FlagWithInput("--baseline ", baselinePath.Path()) - cmd.FlagForEachArg("--disallowed_issues ", updatabilityChecks) - } - } + // TODO(b/193460475): Re-enable strict updatability linting + //if l.GetStrictUpdatabilityLinting() { + // // Verify the module does not baseline issues that endanger safe updatability. + // if baselinePath := l.getBaselineFilepath(ctx); baselinePath.Valid() { + // cmd.FlagWithInput("--baseline ", baselinePath.Path()) + // cmd.FlagForEachArg("--disallowed_issues ", updatabilityChecks) + // } + //} return lintPaths{ projectXML: projectXMLPath, |