This repository has been archived by the owner on May 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
prototool.yaml
58 lines (58 loc) · 2.01 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
protoc:
version: 3.8.0
lint:
group: uber2
# for a list of options and descriptions, run prototool lint --list-linters
ignores:
# Verifies that the file option "php_namespace" is set.
- id: FILE_OPTIONS_REQUIRE_PHP_NAMESPACE
files:
- api
# Verifies that the file option "csharp_namespace" is set.
- id: FILE_OPTIONS_REQUIRE_CSHARP_NAMESPACE
files:
- api
# Verifies that the file option "objc_class_prefix" is set.
- id: FILE_OPTIONS_REQUIRE_OBJC_CLASS_PREFIX
files:
- api
# Verifies that the file option "java_package" is equal to PREFIX.PACKAGE, with PREFIX defaulting to "com" and configurable in your configuration file.
- id: FILE_OPTIONS_EQUAL_JAVA_PACKAGE_PREFIX
files:
- api
# Verifies that the file option "java_multiple_files" is equal to true.
- id: FILE_OPTIONS_EQUAL_JAVA_MULTIPLE_FILES_TRUE
files:
- api
# Verifies that the file option "java_outer_classname" is equal to $(upperCamelCase $(basename FILE))Proto.
- id: FILE_OPTIONS_EQUAL_JAVA_OUTER_CLASSNAME_PROTO_SUFFIX
files:
- api
# Verifies that all enum fields are prefixed with ENUM_NAME_.
- id: ENUM_FIELD_PREFIXES_EXCEPT_MESSAGE
files:
- api
# Verifies that all enum zero value names are ENUM_NAME_INVALID.
- id: ENUM_ZERO_VALUES_INVALID_EXCEPT_MESSAGE
files:
- api
# Verifies that no message or enum has a reserved field.
- id: FIELDS_NOT_RESERVED
files:
- api
# Verifies that no type name contains the word "data".
- id: NAMES_NO_DATA
files:
- api
# Verifies that all google.protobuf.Duration field names are "duration" or end in "_duration".
- id: WKT_DURATION_SUFFIX
files:
- api
# Verifies that all google.protobuf.Timestamp field names are "time" or end in "_time".
- id: WKT_TIMESTAMP_SUFFIX
files:
- api
# Verifies that no type name contains the word "uuid".
- id: NAMES_NO_UUID
files:
- api