Skip to content
This repository was archived by the owner on Mar 4, 2022. It is now read-only.
This repository was archived by the owner on Mar 4, 2022. It is now read-only.

Problems using the word "data" as a substring of an enum name #523

@ernestocid

Description

@ernestocid

Prototool linter complains about the use of the word DATA even when it is an enum's name substring. For example:

enum City {
  CITY_INVALID = 0;
  CITY_ADATAS = 1;
}

When I run the linter it prints the following message:

example.proto:5:3:The name "CITY_ADATAS" contains the outlawed name "data". Data is a decorator and all types on Protobuf are data, consider merging this information into a higher-level type, or if you must have such a type, Use "Info" instead..

I can ignore the rule for the whole file that contains the enum but it seems too drastic. Couldn't the linter ignore cases where "data" is in the middle of another word?

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.11Issue will be released with v1.11

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions