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:20:19 +0300 |
commit | 58aa3bc8b0f8a1dd7fd9ec006ff870d59d8c01be (patch) | |
tree | 3c59ff4f3ae97dc286791f5c40457d30a110be27 /proto/go/gitalypb/ref.pb.go | |
parent | 17dfa058c4310339eb8fcdb871ed46d97ad1d65e (diff) |
proto: Enforce comment-linting for enum fields
Enforce that enum fields must have a comment and add a placeholder for
all instances where such a comment is missing.
Diffstat (limited to 'proto/go/gitalypb/ref.pb.go')
-rw-r--r-- | proto/go/gitalypb/ref.pb.go | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/proto/go/gitalypb/ref.pb.go b/proto/go/gitalypb/ref.pb.go index 67cb0cc94..1c74b5031 100644 --- a/proto/go/gitalypb/ref.pb.go +++ b/proto/go/gitalypb/ref.pb.go @@ -25,8 +25,11 @@ const ( type FindLocalBranchesRequest_SortBy int32 const ( - FindLocalBranchesRequest_NAME FindLocalBranchesRequest_SortBy = 0 - FindLocalBranchesRequest_UPDATED_ASC FindLocalBranchesRequest_SortBy = 1 + // This comment is left unintentionally blank. + FindLocalBranchesRequest_NAME FindLocalBranchesRequest_SortBy = 0 + // This comment is left unintentionally blank. + FindLocalBranchesRequest_UPDATED_ASC FindLocalBranchesRequest_SortBy = 1 + // This comment is left unintentionally blank. FindLocalBranchesRequest_UPDATED_DESC FindLocalBranchesRequest_SortBy = 2 ) @@ -75,7 +78,9 @@ func (FindLocalBranchesRequest_SortBy) EnumDescriptor() ([]byte, []int) { type FindAllTagsRequest_SortBy_Key int32 const ( - FindAllTagsRequest_SortBy_REFNAME FindAllTagsRequest_SortBy_Key = 0 + // This comment is left unintentionally blank. + FindAllTagsRequest_SortBy_REFNAME FindAllTagsRequest_SortBy_Key = 0 + // This comment is left unintentionally blank. FindAllTagsRequest_SortBy_CREATORDATE FindAllTagsRequest_SortBy_Key = 1 ) @@ -122,9 +127,13 @@ func (FindAllTagsRequest_SortBy_Key) EnumDescriptor() ([]byte, []int) { type CreateBranchResponse_Status int32 const ( - CreateBranchResponse_OK CreateBranchResponse_Status = 0 - CreateBranchResponse_ERR_EXISTS CreateBranchResponse_Status = 1 - CreateBranchResponse_ERR_INVALID CreateBranchResponse_Status = 2 + // This comment is left unintentionally blank. + CreateBranchResponse_OK CreateBranchResponse_Status = 0 + // This comment is left unintentionally blank. + CreateBranchResponse_ERR_EXISTS CreateBranchResponse_Status = 1 + // This comment is left unintentionally blank. + CreateBranchResponse_ERR_INVALID CreateBranchResponse_Status = 2 + // This comment is left unintentionally blank. CreateBranchResponse_ERR_INVALID_START_POINT CreateBranchResponse_Status = 3 ) @@ -175,9 +184,13 @@ func (CreateBranchResponse_Status) EnumDescriptor() ([]byte, []int) { type ListRefsRequest_SortBy_Key int32 const ( - ListRefsRequest_SortBy_REFNAME ListRefsRequest_SortBy_Key = 0 - ListRefsRequest_SortBy_CREATORDATE ListRefsRequest_SortBy_Key = 1 - ListRefsRequest_SortBy_AUTHORDATE ListRefsRequest_SortBy_Key = 2 + // This comment is left unintentionally blank. + ListRefsRequest_SortBy_REFNAME ListRefsRequest_SortBy_Key = 0 + // This comment is left unintentionally blank. + ListRefsRequest_SortBy_CREATORDATE ListRefsRequest_SortBy_Key = 1 + // This comment is left unintentionally blank. + ListRefsRequest_SortBy_AUTHORDATE ListRefsRequest_SortBy_Key = 2 + // This comment is left unintentionally blank. ListRefsRequest_SortBy_COMMITTERDATE ListRefsRequest_SortBy_Key = 3 ) |