-
Notifications
You must be signed in to change notification settings - Fork 1
/
.api-linter.yaml
40 lines (40 loc) · 1.69 KB
/
.api-linter.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
- included_paths:
- "**/*.proto"
disabled_rules:
# Since we don't care about resource annotations, we don't care about
# resource-annotation-presence.
- "core::0131::request-name-reference"
- "core::0135::request-name-reference"
# We should be able to make X_id fields required for CreateX RPCs.
- "core::0133::request-required-fields"
# Resource annotations are not required for our use case.
- "core::0123::resource-annotation"
# Field behavior defaults to OPTIONAL, so we don't want to require it.
# Required fields MUST be explicitly marked as such though.
- "core::0203::field-behavior-required"
# The proto package does not strictly match, but modeled in a way that makes
# sense for this monorepo. We prepend "peridot." and don't include the "proto"
# directory.
- "core::0191::proto-package"
# We don't follow the parent/child pattern for our services.
- "core::0133::method-signature"
- "core::0133::http-uri-parent"
- "core::0132::request-parent-required"
- "core::0133::request-parent-required"
# We want to allow certain POST methods to set body to something other than "*".
# Useful for non-JSON payloads.
- "core::0136::http-body"
# I don't really understand this requirement but looks like Google has a special
# use case when it comes to user provided IDs.
- "core::0133::request-id-field"
# We don't require update mask support
- "core::0134::request-mask-required"
- included_paths:
- "third_party/**/*.proto"
- "vendor/**/*.proto"
- "node_modules/**/*.proto"
- "bazel-bin/**/*.proto"
- "bazel-peridot/**/*.proto"
- "bazel-out/**/*.proto"
disabled_rules:
- all