EasyP

Package Defined

Categories:

  • MINIMAL
  • BASIC
  • DEFAULT

This rule checks that all files have a package declaration.

Examples

Bad

syntax = "proto3";

message Foo {
    string bar = 1;
}

Good

syntax = "proto3";

package foo;

message Foo {
    string bar = 1;
}

On this page