Skip to content

Buf ignores features.enforce_naming_style = STYLE_LEGACY in editions 2024 #4596

Description

@Mr3zee

GitHub repository with your minimal reproducible example (do not leave this field blank or fill out this field with "github.com/bufbuild/buf" or we will automatically close your issue, see the instructions above!)

https://github.com/Mr3zee/buf-oneof-naming-style-repro

Commands

buf build

Output

proto/oneof_legacy_naming.proto:26:11:field name should be snake_case
proto/oneof_legacy_naming.proto:27:11:field name should be snake_case

Expected Output

No failures

Anything else?

Originally found to be failing with https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/unittest_preserve_unknown_enum.proto and https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/unittest_preserve_unknown_enum2.proto

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions