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 : Add linter for AIP 140 - Conflicts #1353

Open parthea opened 9 months ago

parthea commented 9 months ago

From https://google.aip.dev/140#conflicts,

Messages should not include a field with the same name as the enclosing message (ignoring case transformations). This causes conflicts when generating code in some languages.

For example, the linter rule should fail when there is a field called foo under message Foo