-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add `make lint` that will run protobuf linter on our codebase. After finishing #262 all linter errors should be gone and we can add `make lint` to our CI. resolve #302
- Loading branch information
Showing
2 changed files
with
38 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
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,28 @@ | ||
excludes: | ||
- ./vendor | ||
|
||
protoc: | ||
# The Protobuf version to use from https://github.com/protocolbuffers/protobuf/releases. | ||
# By default use 3.6.1. | ||
# You probably want to set this to make your builds completely reproducible. | ||
version: 3.6.1 | ||
|
||
# Additional paths to include with -I to protoc. | ||
# By default, the directory of the config file is included, | ||
# or the current directory if there is no config file. | ||
includes: | ||
- ./vendor | ||
- ../../.. | ||
|
||
|
||
# If not set, compile will fail if there are unused imports. | ||
# Setting this will ignore unused imports. | ||
allow_unused_imports: false | ||
|
||
lint: | ||
rules: | ||
remove: | ||
- FILE_OPTIONS_REQUIRE_JAVA_MULTIPLE_FILES | ||
- FILE_OPTIONS_REQUIRE_JAVA_OUTER_CLASSNAME | ||
- FILE_OPTIONS_REQUIRE_JAVA_PACKAGE | ||
- FILE_OPTIONS_REQUIRE_GO_PACKAGE |