-
Notifications
You must be signed in to change notification settings - Fork 6
/
prototool.yaml
81 lines (77 loc) · 2.24 KB
/
prototool.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# prototool settings
excludes:
- info
# Protoc directives.
protoc:
version: 3.10.0
includes:
- .
- ../../tron-us/protobuf/protobuf
- ../../../../src
- ../googleapis
allow_unused_imports: false
# Lint directives.
lint:
group: google
rules:
add:
- ENUM_NAMES_CAMEL_CASE
- ENUM_NAMES_CAPITALIZED
# remove:
# - ENUM_NAMES_CAMEL_CASE
ignores:
- id: ENUM_FIELD_NAMES_UPPER_SNAKE_CASE
files:
- protos/exchange/exchange_message.proto
- id: ENUM_NAMES_CAMEL_CASE
files:
- protos/exchange/exchange_message.proto
- id: ENUM_NAMES_CAPITALIZED
files:
- protos/exchange/exchange_message.proto
- id: MESSAGE_FIELD_NAMES_LOWER_SNAKE_CASE
files:
- protos/exchange/exchange_message.proto
- id: ENUM_FIELD_NAMES_UPPER_SNAKE_CASE
files:
- protos/exchange/exchange_message.proto
- protos/protocol/core/Tron.proto
- id: ENUM_NAMES_CAMEL_CASE
files:
- protos/exchange/exchange_message.proto
- protos/protocol/api/api.proto
- id: ENUM_NAMES_CAPITALIZED
files:
- protos/exchange/exchange_message.proto
- protos/protocol/api/api.proto
- protos/protocol/core/Tron.proto
- id: MESSAGE_FIELD_NAMES_LOWER_SNAKE_CASE
files:
- protos/exchange/exchange_message.proto
- protos/protocol/api/api.proto
- protos/protocol/core/Discover.proto
- protos/protocol/core/Tron.proto
- id: MESSAGE_NAMES_CAPITALIZED
files:
- protos/protocol/core/Tron.proto
- id: RPC_NAMES_CAPITALIZED
files:
- protos/protocol/api/api.proto
# Code generation directives.
generate:
go_options:
import_path: github.com/tron-us/go-btfs-common
extra_modifiers:
Mgoogle/protobuf/any.proto: github.com/tron-us/protobuf/types
Mgoogle/protobuf/duration.proto: github.com/tron-us/protobuf/types
Mgoogle/protobuf/struct.proto: github.com/tron-us/protobuf/types
Mgoogle/protobuf/timestamp.proto: github.com/tron-us/protobuf/types
Mgoogle/protobuf/wrappers.proto: github.com/tron-us/protobuf/types
plugins:
- name: gogo
type: gogo
flags: plugins=grpc
output: .
- name: js
flags: import_style=commonjs,binary
output: js