prototool icon indicating copy to clipboard operation
prototool copied to clipboard

Add ability to annotate messages/fields with nolint directive

Open jared2501 opened this issue 5 years ago • 2 comments

I have some enums/structs that fail lint in my protobuf, for good reason (e.g. I have an enum called X509_KEY_USAGE_DATA_ENCIPHERMENT, and "data encipherment is a phrase taken from IETF spec).

Currently, i skip the entire file by adding it to my prototool.yaml. Instead, I would like to be able to annotate this enum, or even this value in the enum, with a comment that would disable linting for this specific case. golangci-lint offers a // nolint:<rule-name> directive which I find super handy in cases like these. Can prototool learn this skill too?

jared2501 avatar Mar 29 '20 07:03 jared2501

Yeah this is a fair request. I will add it to the backlog.

smaye81 avatar Mar 31 '20 15:03 smaye81

looking forward to this new feature!

sysulq avatar Nov 17 '21 13:11 sysulq