Skip to content

Commit

Permalink
Fix proto-lint by copying gravity config
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianBorst committed Jan 26, 2023
1 parent 05b6576 commit db68c73
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 0 deletions.
9 changes: 9 additions & 0 deletions buf.work.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Generated by "buf config migrate-v1beta1". Edit as necessary, and
# remove this comment when you're finished.
#
# This workspace file points to the roots found in your
# previous "buf.yaml" configuration.
version: v1
directories:
- proto
- third_party/proto
41 changes: 41 additions & 0 deletions buf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
version: v1beta1

build:
roots:
- proto
- third_party/proto
lint:
allow_comment_ignores: true
use:
- DEFAULT
- COMMENTS
- FILE_LOWER_SNAKE_CASE
except:
- UNARY_RPC
- COMMENT_FIELD
- COMMENT_ENUM
- COMMENT_ENUM_VALUE
- COMMENT_RPC
- COMMENT_MESSAGE
- SERVICE_SUFFIX
- PACKAGE_VERSION_SUFFIX
- RPC_REQUEST_STANDARD_NAME
- RPC_RESPONSE_STANDARD_NAME
- INPORT_USED
ignore:
- tendermint
- gogoproto
- cosmos_proto
- google
- third_party
breaking:
use:
- FILE
except:
- FIELD_NO_DELETE
ignore:
- tendermint
- gogoproto
- cosmos_proto
- google
- third_party
38 changes: 38 additions & 0 deletions proto/buf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Generated by "buf config migrate-v1beta1". Edit as necessary, and
# remove this comment when you're finished.
#
# This module represents the "third_party/proto" root found in
# the previous configuration.
version: v1
build:
excludes:
- google/protobuf
breaking:
use:
- FILE
ignore:
- proofs.proto # confio/ics23
- gogoproto
- google
- tendermint
lint:
allow_comment_ignores: true
use:
- DEFAULT
- COMMENTS
- FILE_LOWER_SNAKE_CASE
except:
- UNARY_RPC
- COMMENT_FIELD
- COMMENT_MESSAGE
- COMMENT_RPC
- SERVICE_SUFFIX
- PACKAGE_VERSION_SUFFIX
- RPC_REQUEST_STANDARD_NAME
- RPC_RESPONSE_STANDARD_NAME
- IMPORT_USED
ignore:
- proofs.proto # confio/ics23
- gogoproto
- google
- tendermint

0 comments on commit db68c73

Please sign in to comment.