EasyP

Comment Message

Categories:

  • COMMENT

This rule checks that message has a comment.

Examples

Bad


syntax = "proto3";

message Foo {
    string bar = 1;
    string baz = 2;
}

Good


syntax = "proto3";

// Foo message for bar and baz logic
message Foo {
    // bar field for bar logic 
    string bar = 1; 
    // baz field for baz logic
    string baz = 2; 
}

On this page