teleport/api/proto/buf-legacy.yaml
Alan Parra fbc135e672
Add comment and import cycle proto linters (#16082)
Require top-level proto types to have comments and introduce import cycle linter.
2022-09-02 13:31:45 +00:00

32 lines
781 B
YAML

version: v1
deps:
# gogo/protobuf v1.3.2, keep in sync with build.assets/Makefile.
- buf.build/gogo/protobuf:b03c65ea87cdc3521ede29f62fe3ce239267c1bc
lint:
use:
- DEFAULT
- PACKAGE_NO_IMPORT_CYCLE
# Top-level types require comments.
# TODO(codingllama): Fix messages and enable linters below.
# - COMMENT_ENUM
# - COMMENT_MESSAGE
- COMMENT_RPC
- COMMENT_SERVICE
except:
# MINIMAL
- PACKAGE_DIRECTORY_MATCH
# BASIC
- ENUM_VALUE_UPPER_SNAKE_CASE
- FIELD_LOWER_SNAKE_CASE
- ONEOF_LOWER_SNAKE_CASE
# DEFAULT
- ENUM_VALUE_PREFIX
- ENUM_ZERO_VALUE_SUFFIX
- PACKAGE_VERSION_SUFFIX
- RPC_REQUEST_RESPONSE_UNIQUE
- RPC_REQUEST_STANDARD_NAME
- RPC_RESPONSE_STANDARD_NAME
breaking:
use:
- FILE