yoheimuta / protolint

A pluggable linter and fixer to enforce Protocol Buffer style and conventions.
MIT License
576 stars 52 forks source link

plural of uri is handled wrongly #312

Closed paradoxon82 closed 1 year ago

paradoxon82 commented 1 year ago

Hello,

we have *.proto files that contain members like this: repeated string module_uri = 3; after the first run, using the -fix flag, we get: repeated string module_uris = 3; but this still fails the pluralization check, if we use -fix again, we get repeated string module_urises = 3;

This seems not really correct. Can you please check?

Best Regards, Daniel

yoheimuta commented 1 year ago

Hi, sorry for the late reply! You're right. This does not seem correct.

I'll look into it this weekend. Thank you very much!

yoheimuta commented 1 year ago

@paradoxon82 I fixed this issue by v0.43.1. Can you give it a try when you have a moment?

paradoxon82 commented 1 year ago

@yoheimuta looks good now, it only gets modified once module_uri to module_uris

yoheimuta commented 1 year ago

Good to hear that!