gapic-generator-csharp
gapic-generator-csharp copied to clipboard
Fail generation if any protos have missing comments
Currently, if any protobuf element is missing a comment, we generate code but the result doesn't compile. The missing comments could be on messages, RPCs, services, fields, enums, enum values - anything, basically.
It would be helpful for the generator to fail for this:
- We would highlight the problem to API producers earlier
- We can provide an error message with the complete list of elements missing comments, rather than having to look through protos after finding C# compilation errors
protoc generates code that ignores CS1591, so this actually only causes a later failure on GAPIC-generated elements. A warning for other elements would still be handy though. (And having prototyped this, there are a lot of them....)