Showing 28 of 64 total issues
Function request_GreeterService_Sign_0
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func request_GreeterService_Sign_0(ctx context.Context, marshaler runtime.Marshaler, client GreeterServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
Function local_request_GreeterService_Hello_0
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func local_request_GreeterService_Hello_0(ctx context.Context, marshaler runtime.Marshaler, server GreeterServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
Function doProtobufRequest
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func doProtobufRequest(ctx context.Context, client HTTPClient, hooks *twirp.ClientHooks, url string, in, out proto.Message) (_ context.Context, err error) {
Function request_GreeterService_Hello_0
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func request_GreeterService_Hello_0(ctx context.Context, marshaler runtime.Marshaler, client GreeterServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
Function errorFromResponse
has 5 return statements (exceeds 4 allowed). Open
Open
func errorFromResponse(resp *http.Response) twirp.Error {
statusCode := resp.StatusCode
statusText := http.StatusText(statusCode)
if isHTTPRedirect(statusCode) {
Function RegisterGreeterServiceHandlerClient
has 5 return statements (exceeds 4 allowed). Open
Open
func RegisterGreeterServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client GreeterServiceClient) error {
mux.Handle("POST", pattern_GreeterService_Hello_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
Function Run
has 5 return statements (exceeds 4 allowed). Open
Open
func Run(cnf *config.Server) *cobra.Command {
command := cobra.Command{
Use: "run",
Short: "run the server",
Long: "Start listening required protocols.",
Function RegisterGreeterServiceHandlerServer
has 5 return statements (exceeds 4 allowed). Open
Open
func RegisterGreeterServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server GreeterServiceServer) error {
mux.Handle("POST", pattern_GreeterService_Hello_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()