-
Notifications
You must be signed in to change notification settings - Fork 0
/
prototool.yaml
43 lines (39 loc) · 1.35 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
protoc:
version: 3.11.0
lint:
# The lint group to use.
# Available groups: "uber1", "uber2", "google", "empty".
# The default group is the "uber1" lint group for backwards compatibility reasons,
# however we recommend using the "uber2" lint group.
# The special group "empty" has no linters, allowing you to manually specify all
# lint rules in lint.rules.add.
# Run prototool lint --list-all-lint-groups to see all available lint groups.
# Run prototool lint --list-lint-group GROUP to list the linters in the given lint group.
group: google
# Linter files to ignore.
# These can either be file or directory names.
# If there is a directory name, that directory and all sub-directories will be ignored.
ignores:
- id: RPC_NAMES_CAMEL_CASE
files:
- path/to/foo.proto
- path/to/bar.proto
- id: SYNTAX_PROTO3
files:
- path/to/dir
# Linter rules.
# Run prototool lint --list-all-linters to see all available linters.
# Run prototool lint --list-linters to see the currently configured linters.
rules:
# The specific linters to add.
add:
- ENUM_NAMES_CAMEL_CASE
- ENUM_NAMES_CAPITALIZED
generate:
go_options:
import_path: github.com/layer5io/service-mesh-performance/protos
plugins:
- name: go
type: go
flags: plugins=grpc
output: ./