Make API lint warnings errors for system & testapi
They used to be listed to not have this treatment, but we are baselining the existing warnings and making them errors instead. Bug: 154317059 Test: m Change-Id: I306b5a07d1b771cc0061aaac44f881f40fbe85ed Merged-In: I306b5a07d1b771cc0061aaac44f881f40fbe85ed
This commit is contained in:
@@ -1412,9 +1412,7 @@ func (d *Droidstubs) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
||||
|
||||
// TODO(b/154317059): Clean up this whitelist by baselining and/or checking in last-released.
|
||||
if d.Name() != "android.car-system-stubs-docs" &&
|
||||
d.Name() != "android.car-stubs-docs" &&
|
||||
d.Name() != "system-api-stubs-docs" &&
|
||||
d.Name() != "test-api-stubs-docs" {
|
||||
d.Name() != "android.car-stubs-docs" {
|
||||
cmd.Flag("--lints-as-errors")
|
||||
cmd.Flag("--warnings-as-errors") // Most lints are actually warnings.
|
||||
}
|
||||
|
Reference in New Issue
Block a user