EasyP

Comment Service

Categories:

  • COMMENT

This rule checks that service has a comment.

Examples

Bad

syntax = "proto3";

service Foo {
    rpc Bar (BarRequest) returns (BarResponse) {}
}

Good

syntax = "proto3";

// Foo service for bar logic
service Foo {
    // Bar rpc for bar logic 
    rpc Bar (BarRequest) returns (BarResponse) {}
}

On this page