forked from hyperledger-labs/go-perun
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add linter config for protobuf files (*.proto)
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |