Skip to content

buf rules in Sudsy

Protobufversion 1.75.0 (GitHub release; the version `scripts/parity.sh format buf` downloads)89% of its findings also reported99% of Protobuf files identical22 covered3 partial0 planned22 deferred

Every rule and setting of buf in the parity catalog, with the Sudsy equivalent. The lint share is the part of buf’s default set (in scope) whose findings Sudsy also reports on real-world code, with the preset that mirrors it. The format share is the part of real-world files that Sudsy formats to the same text as buf. Where the tool has a page for an entry, the id links to it.

Status: covered; partial (the note says what differs); not yet (planned); deferred; not planned; SDK (a .NET SDK diagnostic does it).

Id Sudsy Status Note
format formatter partial 320 of 323 corpus files are identical; the other 3 are listed with their reasons in tests/parity/buf/differences.yaml.
diff configuration: sudsy format --check covered
ENUM_FIRST_VALUE_ZERO enum-first-value-zero covered
ENUM_NO_ALLOW_ALIAS enum-no-allow-alias covered
ENUM_PASCAL_CASE enum-pascal-case covered
ENUM_VALUE_UPPER_SNAKE_CASE enum-value-upper-snake-case covered
FIELD_LOWER_SNAKE_CASE field-lower-snake-case covered
FIELD_NOT_REQUIRED field-not-required covered
IMPORT_NO_PUBLIC import-no-public covered
IMPORT_USED import-used covered
RPC_REQUEST_RESPONSE_UNIQUE rpc-request-response-unique covered
MESSAGE_PASCAL_CASE message-pascal-case covered
ONEOF_LOWER_SNAKE_CASE oneof-lower-snake-case covered
PACKAGE_DEFINED package-defined covered
PACKAGE_LOWER_SNAKE_CASE package-lower-snake-case covered
RPC_PASCAL_CASE rpc-pascal-case covered
SERVICE_PASCAL_CASE service-pascal-case covered
SYNTAX_SPECIFIED syntax-specified covered
ENUM_VALUE_PREFIX enum-value-prefix covered
ENUM_ZERO_VALUE_SUFFIX enum-zero-value-suffix partial The suffix is not configurable.
FILE_LOWER_SNAKE_CASE file-lower-snake-case covered
PACKAGE_VERSION_SUFFIX package-version-suffix covered
RPC_REQUEST_STANDARD_NAME rpc-request-standard-name covered
RPC_RESPONSE_STANDARD_NAME rpc-response-standard-name covered
SERVICE_SUFFIX service-suffix partial The suffix is not configurable.
DIRECTORY_SAME_PACKAGE - deferred Needs the other files of the module.
PACKAGE_SAME_DIRECTORY - deferred Needs the other files of the module.
PACKAGE_NO_IMPORT_CYCLE - deferred Needs the other files of the module.
PACKAGE_SAME_CSHARP_NAMESPACE - deferred Needs the other files of the module.
PACKAGE_SAME_GO_PACKAGE - deferred Needs the other files of the module.
PACKAGE_SAME_JAVA_MULTIPLE_FILES - deferred Needs the other files of the module.
PACKAGE_SAME_JAVA_PACKAGE - deferred Needs the other files of the module.
PACKAGE_SAME_PHP_NAMESPACE - deferred Needs the other files of the module.
PACKAGE_SAME_RUBY_PACKAGE - deferred Needs the other files of the module.
PACKAGE_SAME_SWIFT_PREFIX - deferred Needs the other files of the module.
STABLE_PACKAGE_NO_IMPORT_UNSTABLE - deferred Needs the other files of the module.
PACKAGE_DIRECTORY_MATCH - deferred Needs the module root, which the path of a file under it is compared with.
PROTOVALIDATE - deferred Needs a CEL compiler.
COMMENT_ENUM - deferred Not in the default categories; needs the comment that belongs to a declaration.
COMMENT_ENUM_VALUE - deferred Not in the default categories; needs the comment that belongs to a declaration.
COMMENT_FIELD - deferred Not in the default categories; needs the comment that belongs to a declaration.
COMMENT_MESSAGE - deferred Not in the default categories; needs the comment that belongs to a declaration.
COMMENT_ONEOF - deferred Not in the default categories; needs the comment that belongs to a declaration.
COMMENT_RPC - deferred Not in the default categories; needs the comment that belongs to a declaration.
COMMENT_SERVICE - deferred Not in the default categories; needs the comment that belongs to a declaration.
RPC_NO_CLIENT_STREAMING - deferred Not in the default categories (UNARY_RPC).
RPC_NO_SERVER_STREAMING - deferred Not in the default categories (UNARY_RPC).