-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.protolint.yaml
37 lines (34 loc) · 1.06 KB
/
.protolint.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
# Lint directives. Documentation:
# https://github.com/yoheimuta/protolint/blob/master/_example/config/.protolint.yaml
lint:
# Linter directories to walk.
directories:
exclude:
- codegen
- doc
- tests
rules:
# Use default rules
all_default: true
# - Proto files are not fully documented.
# - Many repeated messages are not properly pluralized
# - Enum fields are not properly prefixed with the enum name
# - Enum fields with 0 value are not suffixed UNSPECIFIED
# - Prepositions should be exluded from message and field names
remove:
- PACKAGE_NAME_LOWER_CASE
- MESSAGES_HAVE_COMMENT
- SERVICES_HAVE_COMMENT
- RPCS_HAVE_COMMENT
- FIELDS_HAVE_COMMENT
- ENUMS_HAVE_COMMENT
- ENUM_FIELDS_HAVE_COMMENT
- REPEATED_FIELD_NAMES_PLURALIZED
- ENUM_FIELD_NAMES_PREFIX
- ENUM_FIELD_NAMES_ZERO_VALUE_END_WITH
- MESSAGE_NAMES_EXCLUDE_PREPOSITIONS
- FIELD_NAMES_EXCLUDE_PREPOSITIONS
# Linter rules option.
rules_option:
max_line_length:
max_chars: 120