This rule enforces that resource reference annotations refer resources defined
in the same package, as described in AEP-124.
Details
This rule scans all fields with google.api.resource_reference annotations,
and complains if the type on them refers to a resource that is defined in a
different protobuf package.
Certain common resource types are exempt from this rule.
Examples
Incorrect code for this rule:
Correct code for this rule:
Disabling
If you need to violate this rule, use a leading comment above the field.
Remember to also include an aep.dev/not-precedent comment explaining why.
If you need to violate this rule for an entire file, place the comment at the
top of the file.