protolint
protolint copied to clipboard
Indentations in square brackets aren't fixed
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 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