buf.yaml 854 B

123456789101112131415161718192021
  1. version: v2
  2. modules:
  3. - path: proto
  4. name: cline/cline/lint
  5. lint:
  6. use:
  7. - STANDARD
  8. except: # Add exceptions for current patterns that contradict STANDARD settings
  9. - RPC_PASCAL_CASE # rpcs are camel case (start with lowercase)
  10. - RPC_REQUEST_RESPONSE_UNIQUE # request messages are not unique.
  11. - RPC_REQUEST_STANDARD_NAME # request messages dont all end with Request
  12. - RPC_RESPONSE_STANDARD_NAME # response messages dont all end with Response
  13. - PACKAGE_VERSION_SUFFIX # package name does not contain version.
  14. - ENUM_VALUE_PREFIX # enum values dont start with the enum name.
  15. - ENUM_ZERO_VALUE_SUFFIX # first value does not have to be UNSPECIFIED.
  16. # breaking:
  17. # use:
  18. # - WIRE_JSON # Detect changes that break the json wire format (this is the minimum recommended level.)