buf icon indicating copy to clipboard operation
buf copied to clipboard

Add `COMMENT_RESERVED` lint rule

Open doriable opened this issue 9 months ago • 0 comments

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.

doriable avatar Mar 21 '25 17:03 doriable