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:
Mohamed Awnallah committed 2024-01-22 22:00:00 +02:00
1 parent ec5b824879
commit 1402ffd17b
10 files changed
+92 -14

No files matched your search

+2 -2
View File
@@ -1,9 +1,9 @@
syntax = "proto3";
import "lightning.proto";
package devrpc;
import "lightning.proto";
option go_package = "github.com/lightningnetwork/lnd/lnrpc/devrpc";
/*
+2 -2
View File
@@ -1,9 +1,9 @@
syntax = "proto3";
import "lightning.proto";
package invoicesrpc;
import "lightning.proto";
option go_package = "github.com/lightningnetwork/lnd/lnrpc/invoicesrpc";
/*
+2 -2
View File
@@ -1,9 +1,9 @@
syntax = "proto3";
import "verrpc/verrpc.proto";
package lnclipb;
import "verrpc/verrpc.proto";
option go_package = "github.com/lightningnetwork/lnd/lnrpc/lnclipb";
message VersionResponse {
+2 -2
View File
@@ -1,9 +1,9 @@
syntax = "proto3";
import "lightning.proto";
package peersrpc;
import "lightning.proto";
option go_package = "github.com/lightningnetwork/lnd/lnrpc/peersrpc";
// Peers is a service that can be used to get information and interact
+2 -2
View File
@@ -1,9 +1,9 @@
syntax = "proto3";
import "lightning.proto";
package routerrpc;
import "lightning.proto";
option go_package = "github.com/lightningnetwork/lnd/lnrpc/routerrpc";
/*
+2 -2
View File
@@ -1,10 +1,10 @@
syntax = "proto3";
package walletrpc;
import "lightning.proto";
import "signrpc/signer.proto";
package walletrpc;
option go_package = "github.com/lightningnetwork/lnd/lnrpc/walletrpc";
/*
+2 -2
View File
@@ -1,9 +1,9 @@
syntax = "proto3";
import "lightning.proto";
package lnrpc;
import "lightning.proto";
option go_package = "github.com/lightningnetwork/lnd/lnrpc";
/*