jvolkman / intellij-protobuf-editor

Protocol Buffers for IntelliJ-based IDEs
Apache License 2.0
122 stars 15 forks source link

highlight numbering gaps #59

Open daveyostcom opened 3 years ago

daveyostcom commented 3 years ago
message Foo {
  int32 a = 1;
  bool  b = 3;
}

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

jvolkman commented 3 years ago

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 commented 3 years ago

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