Skip to content

Commit

Permalink
ci: Add linter config for protobuf files (*.proto)
Browse files Browse the repository at this point in the history
Signed-off-by: Manoranjith <[email protected]>
  • Loading branch information
Manoranjith committed Feb 15, 2022
1 parent e4597f8 commit 37beb88
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .protolint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
lint:
ignores:
# Sometimes, when variable names are long line length exceeds 80 char.
- id: MAX_LINE_LENGTH
files:
- wire/protobuf/wire.proto

# Some fields with repeated type intentionally have non plural names.
# Eg: balance, index_map etc.,
- id: REPEATED_FIELD_NAMES_PLURALIZED
files:
- wire/protobuf/wire.proto

rules:

# Enable a few additional linters, that are not part of official style
# guide for protonbuf.
add:
- MESSAGES_HAVE_COMMENT
- FILE_HAS_COMMENT
- SYNTAX_CONSISTENT

0 comments on commit 37beb88

Please sign in to comment.