protolint icon indicating copy to clipboard operation
protolint copied to clipboard

Feature: unused imports lint/fixer

Open tzachshabtay opened this issue 5 years ago • 2 comments

I am getting a warning from protoc but not from the linter (using the vscode extension).

For example:

warning: Import google/protobuf/wrappers.proto but not used.

tzachshabtay avatar Feb 05 '20 16:02 tzachshabtay

@tzachshabtay Thank you for your suggestion. It sounds useful. I attached the label to this issue for starters.

yoheimuta avatar Feb 06 '20 02:02 yoheimuta

Agree with @tzachshabtay. It would also be useful to identify unused imports (or unused messages in the case where all .proto files across the org are available in a central repo).

mayankbpatel avatar Jul 26 '23 21:07 mayankbpatel