Skip to content

Add COMMENT_RESERVED lint rule #3703

Open
@doriable

Description

@doriable

Feature

It would be nice to have a lint rule that enforces that all reserved declarations have comments attached, e.g.

message Foo {
  // Previously used for deprecated feature, bar_id
  reserved 2;
}

This could also be a part of a check plugin that provides additional checks for handling deprecation in protos.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions