AEP-0146 Linter Rules
Any
Any
This rule discourages the use of google.protobuf.Any
, as described in
AEP-146.
Details
This rule complains if it sees a google.protobuf.Any
field. Common packages
(such as google.api
or google.longrunning
) are excluded.
Examples
Incorrect code for this rule:
Correct code for this rule:
The correct code is likely to vary substantially by use case. See AEP-146 for details and tradeoffs of various approaches for generic fields.
Disabling
If you need to violate this rule, use a leading comment above the method. 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.