protolint icon indicating copy to clipboard operation
protolint copied to clipboard

Indentations in square brackets aren't fixed

Open PaulSonOfLars opened this issue 5 years ago • 1 comments
trafficstars

The following proto does not get any indentation warnings raised, even though the values in the [] are all over the place. Is this intended?

syntax = "proto3";

message Foo {
  string bar = 1 [
                     // comment
               deprecated=true
                                 ];
}

PaulSonOfLars avatar Nov 21 '19 14:11 PaulSonOfLars

@PaulSonOfLars Good catch on the case! It's not intended. I just missed that case.

[memo] ref. Implementation

  • https://github.com/yoheimuta/protolint/blob/9364a237a4396a9ca583f0543da4df40d51343d8/internal/addon/rules/indentRule.go

yoheimuta avatar Nov 23 '19 06:11 yoheimuta