EasyP

Package Same Directory

Categories:

  • MINIMAL
  • BASIC
  • DEFAULT

This rule checks that all files with a given package are in the same directory.

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