mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:17:32 +00:00
refactor(fmt): run gci on complete project (#7557)
chore(fmt): run gci on complete project Fix global import formatting in go code by running the `gci` command. This allows us to just use the command directly, instead of fixing the import order manually for the linter, on each PR. Co-authored-by: Elio Bischof <elio@zitadel.com>
This commit is contained in:
@@ -4,9 +4,10 @@ import (
|
||||
"context"
|
||||
"strings"
|
||||
|
||||
grpc_utils "github.com/zitadel/zitadel/internal/api/grpc"
|
||||
grpc_trace "go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc"
|
||||
"google.golang.org/grpc"
|
||||
|
||||
grpc_utils "github.com/zitadel/zitadel/internal/api/grpc"
|
||||
)
|
||||
|
||||
type GRPCMethod string
|
||||
|
@@ -3,12 +3,12 @@ package middleware
|
||||
import (
|
||||
"context"
|
||||
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
//import to make sure go.mod does not lose it
|
||||
//because dependency is only needed for generated code
|
||||
_ "github.com/envoyproxy/protoc-gen-validate/validate"
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
)
|
||||
|
||||
func ValidationHandler() grpc.UnaryServerInterceptor {
|
||||
@@ -17,8 +17,8 @@ func ValidationHandler() grpc.UnaryServerInterceptor {
|
||||
}
|
||||
}
|
||||
|
||||
//validator interface needed for github.com/envoyproxy/protoc-gen-validate
|
||||
//(it does not expose an interface itself)
|
||||
// validator interface needed for github.com/envoyproxy/protoc-gen-validate
|
||||
// (it does not expose an interface itself)
|
||||
type validator interface {
|
||||
Validate() error
|
||||
}
|
||||
|
Reference in New Issue
Block a user