-
Notifications
You must be signed in to change notification settings - Fork 2
/
prototool.yaml
45 lines (44 loc) · 1.73 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
excludes:
- vendor
protoc:
version: 3.6.1
includes:
- vendor
lint:
# we are using Google API Design guide so we need to enable/disable some
# linting options accordingly
rules:
remove:
- FILE_OPTIONS_EQUAL_GO_PACKAGE_PB_SUFFIX
- FILE_OPTIONS_REQUIRE_JAVA_MULTIPLE_FILES
- FILE_OPTIONS_REQUIRE_JAVA_OUTER_CLASSNAME
- FILE_OPTIONS_REQUIRE_JAVA_PACKAGE
- FILE_OPTIONS_REQUIRE_PHP_NAMESPACE
- FILE_OPTIONS_REQUIRE_CSHARP_NAMESPACE
- FILE_OPTIONS_REQUIRE_OBJC_CLASS_PREFIX
- REQUEST_RESPONSE_TYPES_UNIQUE
- REQUEST_RESPONSE_TYPES_IN_SAME_FILE
- ENUM_FIELD_PREFIXES
- ENUM_ZERO_VALUES_INVALID
add:
- MESSAGES_HAVE_COMMENTS_EXCEPT_REQUEST_RESPONSE_TYPES
- RPCS_HAVE_COMMENTS
- SERVICES_HAVE_COMMENTS
# Code generation directives.
generate:
go_options:
import_path: github.com/bitpoke/bitpoke-go
extra_modifiers:
# our staging/vendor duality fucks up code generations, so we need to manually fix it
bitpoke/api/event/v1/event.proto: github.com/bitpoke/bitpoke-go/pkg/api/event/v1
bitpoke/affinity/v1/affinity.proto: github.com/bitpoke/bitpoke-go/pkg/affinity/v1beta1
bitpoke/toleration/v1/toleration.proto: github.com/bitpoke/bitpoke-go/pkg/toleration/v1beta1
bitpoke/conditions/v1/condition.proto: github.com/bitpoke/bitpoke-go/pkg/condition/v1beta1
bitpoke/operation/v1/operation.proto: github.com/bitpoke/bitpoke-go/pkg/operation/v1beta1
bitpoke/statuses/v1/status.proto: github.com/bitpoke/bitpoke-go/pkg/status/v1beta1
bitpoke/resources/v1/resource.proto: github.com/bitpoke/bitpoke-go/pkg/resource/v1beta1
plugins:
- name: gogo
type: gogo
flags: plugins=grpc
output: ../staging/src