EasyP

Comment Field

Categories:

  • COMMENT

This rule checks that all message fields have a comment.

Examples

Bad

syntax = "proto3";

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

Good

syntax = "proto3";

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

On this page