Merge "Make API lint warnings errors for system & testapi"
This commit is contained in:
commit
a6906e2329
|
@ -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.
|
// TODO(b/154317059): Clean up this whitelist by baselining and/or checking in last-released.
|
||||||
if d.Name() != "android.car-system-stubs-docs" &&
|
if d.Name() != "android.car-system-stubs-docs" &&
|
||||||
d.Name() != "android.car-stubs-docs" &&
|
d.Name() != "android.car-stubs-docs" {
|
||||||
d.Name() != "system-api-stubs-docs" &&
|
|
||||||
d.Name() != "test-api-stubs-docs" {
|
|
||||||
cmd.Flag("--lints-as-errors")
|
cmd.Flag("--lints-as-errors")
|
||||||
cmd.Flag("--warnings-as-errors") // Most lints are actually warnings.
|
cmd.Flag("--warnings-as-errors") // Most lints are actually warnings.
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue