Skip to content
This repository has been archived by the owner on Dec 23, 2022. It is now read-only.

highlight numbering gaps #59

Open
daveyostcom opened this issue Feb 27, 2021 · 2 comments
Open

highlight numbering gaps #59

daveyostcom opened this issue Feb 27, 2021 · 2 comments

Comments

@daveyostcom
Copy link

message Foo {
  int32 a = 1;
  bool  b = 3;
}

Giving the 3 a different color to point out the numbering gap would be helpful.

@jvolkman
Copy link
Owner

Do you want to know that the fields are not ordered/contiguous, or that a field number is unused? I can think of reasons for fields to be listed in other than their numeric order, but I suppose each number should be used or reserved. It would probably be an optional inspection, though

@daveyostcom
Copy link
Author

Optional would be fine. Just a highlight on a number that is not preceded by itself – 1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants