Re-enable strict updatability linting
Now that all use cases where it would've errored on are removed. Ignore-AOSP-First: the properties were only removed in internal main to make the LSC smaller Bug: 320698986 Test: m nothing --no-skip-soong-tests, and also locally edited soong to add a quick build that runs all the strict updatability checks in the tree and ran that Change-Id: If9e23327a3c0944cc8c6849914fe51dc48bdb626
This commit is contained in:
15
java/lint.go
15
java/lint.go
@@ -325,14 +325,13 @@ 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)
|
||||
|
||||
// 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)
|
||||
// }
|
||||
//}
|
||||
if l.GetStrictUpdatabilityLinting() {
|
||||
// Verify the module does not baseline issues that endanger safe updatability.
|
||||
if l.properties.Lint.Baseline_filename != nil {
|
||||
cmd.FlagWithInput("--baseline ", android.PathForModuleSrc(ctx, *l.properties.Lint.Baseline_filename))
|
||||
cmd.FlagForEachArg("--disallowed_issues ", updatabilityChecks)
|
||||
}
|
||||
}
|
||||
|
||||
return lintPaths{
|
||||
projectXML: projectXMLPath,
|
||||
|
Reference in New Issue
Block a user