Skip to content

OSI violates several Protobuf Style Guide rules #711

Description

@globberwops

Describe the bug

OSI violates several Protobuf Style Guide rules, see Style Guide

  • File Structure
    imports are listed before package name
    imports are not sorted
    options are listed before package name and imports
  • Enums
    zero values do not use the suffix UNSPECIFIED

Expected

Follow the Style Guide and explicitly list exceptions as it is done here:

"OSI uses singular instead of plural for repeated field names."

Provide a protolint config file, use protolint in CI.

---
lint:
  rules:
    remove:
      - REPEATED_FIELD_NAMES_PLURALIZED
  rules_option:
    enum_field_names_zero_value_end_with:
      suffix: UNKNOWN
    indent:
      style: 4
    max_line_length:
      max_chars: 120
      tab_chars: 4

Regards,
Martin

Martin Stump martin.stump@mercedes-benz.com on behalf of MBition GmbH, Provider Information

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

HelpWantedI have tried my best - please help me!

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions