protolint: configure protolint and fix the protolinting issues
This PR addresses the following: - Install and Configure protolint to enforce the protobuf style guide rules in the CI. - Fix the protolinting issues (package and import ordering) while maintaining the comaptibility.
This commit is contained in:
10 files changed
+92
-14
No files matched your search
@@ -280,6 +280,11 @@ lint: docker-tools
|
||||
@$(call print, "Linting source.")
|
||||
$(DOCKER_TOOLS) golangci-lint run -v $(LINT_WORKERS)
|
||||
|
||||
#? protolint: Lint proto files using protolint
|
||||
protolint:
|
||||
@$(call print, "Linting proto files.")
|
||||
docker run --rm --volume "$$(pwd):/workspace" --workdir /workspace yoheimuta/protolint lint lnrpc/
|
||||
|
||||
#? tidy-module: Run `go mod` tidy for all modules
|
||||
tidy-module:
|
||||
echo "Running 'go mod tidy' for all modules"
|
||||
|
||||
Reference in new issue
Block a user