diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-05-02 12:42:47 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-05-09 13:18:35 +0300 |
commit | 17dfa058c4310339eb8fcdb871ed46d97ad1d65e (patch) | |
tree | b25d3c36f0f66add790a47ef2b0af35feb747ff5 /proto/lint.proto | |
parent | e4b7df2292b4eeeefa4f70e77e2ad34a60de0c76 (diff) |
proto: Enforce comment-linting for enum definitions
Enforce that enum definitions must have a comment and add a placeholder
for all instances where such a comment is missing.
Diffstat (limited to 'proto/lint.proto')
-rw-r--r-- | proto/lint.proto | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/proto/lint.proto b/proto/lint.proto index 41240243b..cec0141b4 100644 --- a/proto/lint.proto +++ b/proto/lint.proto @@ -8,6 +8,7 @@ option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb"; // This comment is left unintentionally blank. message OperationMsg { + // This comment is left unintentionally blank. enum Operation { UNKNOWN = 0; MUTATOR = 1; @@ -15,8 +16,7 @@ message OperationMsg { MAINTENANCE = 3; } - Operation op = 1; - + // This comment is left unintentionally blank. enum Scope { REPOSITORY = 0; STORAGE = 2; @@ -25,6 +25,9 @@ message OperationMsg { reserved "SERVER"; } + + Operation op = 1; + // Scope level indicates what level an RPC interacts with a server: // - REPOSITORY: scoped to only a single repo // - SERVER: affects the entire server and potentially all repos |