Replies: 1 comment 1 reply
-
Custom rules can be disabled.
How about
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to implement a custom rule, requiring an ownership label in each protofile, e.g.
My naïve, starting implementation is:
Since I only know the option is missing once i've processed all the options, I don't add a failure until the
Finally
block. However, I've noticed that I'm unable to inline disable existing violations, with e.g.// protolint:disable:this FILE_HAS_OWNER
in the first line of the file.How can I implement the rule in such a way that inline disabling is supported?
Beta Was this translation helpful? Give feedback.
All reactions