Skip to content

Commit

Permalink
fix proto-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Apr 15, 2024
1 parent 3d18b04 commit 8a26f57
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 162 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ proto-gen:

proto-lint:
@echo "Linting Protobuf files"
@$(protoImage) buf lint --error-format=json
@$(protoImage) buf lint ./proto --error-format=json

proto-swagger-gen:
@echo "Generating Protobuf Swagger"
Expand Down
2 changes: 2 additions & 0 deletions memiavl/changeset.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions proto/buf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ deps:
- buf.build/cosmos/gogo-proto:5e5b9fdd01804356895f8f79a6f1ddc1
- buf.build/googleapis/googleapis:cc916c31859748a68fd229a3c8d7a2e8
- buf.build/cosmos/ics23:b1abd8678aab07165efd453c96796a179eb3131f
- buf.build/crypto-org-chain/cronos-thirdparty
breaking:
use:
- FILE
Expand Down
2 changes: 2 additions & 0 deletions proto/memiavl/changeset.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ package memiavl;

option go_package = "github.com/crypto-org-chain/cronos/memiavl";

// KVPair represents a key-value pair
message KVPair {
bool delete = 1;
bytes key = 2;
bytes value = 3;
}

// ChangeSet represents a list of key-value pairs
message ChangeSet {
repeated KVPair pairs = 1;
}
27 changes: 27 additions & 0 deletions third_party/proto/buf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Generated by "buf config migrate-v1beta1". Edit as necessary, and
# remove this comment when you're finished.
#
# This module represents the "proto" root found in
# the previous configuration.
version: v1
name: buf.build/crypto-org-chain/cronos-thirdparty
deps:
- buf.build/cosmos/cosmos-sdk:954f7b05f38440fc8250134b15adec47
- buf.build/cosmos/cosmos-proto:1935555c206d4afb9e94615dfd0fad31
- buf.build/cosmos/gogo-proto:5e5b9fdd01804356895f8f79a6f1ddc1
- buf.build/googleapis/googleapis:cc916c31859748a68fd229a3c8d7a2e8
- buf.build/cosmos/ics23:b1abd8678aab07165efd453c96796a179eb3131f
breaking:
use:
- FILE
lint:
use:
- DEFAULT
- COMMENTS
- FILE_LOWER_SNAKE_CASE
except:
- UNARY_RPC
- COMMENT_FIELD
- SERVICE_SUFFIX
- PACKAGE_VERSION_SUFFIX
- RPC_REQUEST_STANDARD_NAME
161 changes: 0 additions & 161 deletions third_party/proto/google/protobuf/any.proto

This file was deleted.

0 comments on commit 8a26f57

Please sign in to comment.