EasyP

Comment Enum

Categories:

  • COMMENT

This rule checks that enum has a comment.

Examples

Bad

syntax = "proto3";

enum Foo {
    BAR = 0;
    BAZ = 1;
}

Good

syntax = "proto3";

// Foo enum for bar and baz logic
enum Foo {
    BAR = 0; 
    BAZ = 1; 
}

On this page