EasyP

Package Directory Match

Categories:

  • MINIMAL
  • BASIC
  • DEFAULT

This rule checks that all files are in a directory that matches their package name.

Examples

Bad

// File: bar/foo.proto

syntax = "proto3";

package foo;

message Foo {
    string bar = 1;
}

Good

// File: bar/foo.proto

syntax = "proto3";

package bar;

message Foo {
    string bar = 1;
}

On this page