googleapis / api-linter

A linter for APIs defined in protocol buffers.
https://linter.aip.dev/
Apache License 2.0
600 stars 144 forks source link

Feature Request : Update the list of reserved words in AIP 140 #1352

Open parthea opened 9 months ago

parthea commented 9 months ago

From https://google.aip.dev/140#reserved-words,

Field names should avoid using names that are likely to conflict with keywords in common programming languages, such as new, class, function, import, etc. Reserved keywords can cause hardship for developers using the API in that language.

The reserved words list exists here https://github.com/googleapis/api-linter/blob/f438ca379e9dbf6382899db7608de33d670a243b/rules/aip0140/reserved_words.go#L40-L122

However some reserved words, for example type, are missing from the list.