octomation/go-service

View on GitHub

Showing 28 of 64 total issues

Function request_GreeterService_Sign_0 has 5 arguments (exceeds 4 allowed). Consider refactoring.
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) {
Severity: Minor
Found in api/rpc/v1/service.pb.gw.go - About 35 mins to fix

    Function local_request_GreeterService_Hello_0 has 5 arguments (exceeds 4 allowed). Consider refactoring.
    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) {
    Severity: Minor
    Found in api/rpc/v1/service.pb.gw.go - About 35 mins to fix

      Function doProtobufRequest has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      func doProtobufRequest(ctx context.Context, client HTTPClient, hooks *twirp.ClientHooks, url string, in, out proto.Message) (_ context.Context, err error) {
      Severity: Minor
      Found in api/rpc/v1/service.twirp.go - About 35 mins to fix

        Function request_GreeterService_Hello_0 has 5 arguments (exceeds 4 allowed). Consider refactoring.
        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) {
        Severity: Minor
        Found in api/rpc/v1/service.pb.gw.go - About 35 mins to fix

          Function errorFromResponse has 5 return statements (exceeds 4 allowed).
          Open

          func errorFromResponse(resp *http.Response) twirp.Error {
              statusCode := resp.StatusCode
              statusText := http.StatusText(statusCode)
          
              if isHTTPRedirect(statusCode) {
          Severity: Major
          Found in api/rpc/v1/service.twirp.go - About 35 mins to fix

            Function RegisterGreeterServiceHandlerClient has 5 return statements (exceeds 4 allowed).
            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()
            Severity: Major
            Found in api/rpc/v1/service.pb.gw.go - About 35 mins to fix

              Function Run has 5 return statements (exceeds 4 allowed).
              Open

              func Run(cnf *config.Server) *cobra.Command {
                  command := cobra.Command{
                      Use:   "run",
                      Short: "run the server",
                      Long:  "Start listening required protocols.",
              Severity: Major
              Found in internal/command/server.go - About 35 mins to fix

                Function RegisterGreeterServiceHandlerServer has 5 return statements (exceeds 4 allowed).
                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()
                Severity: Major
                Found in api/rpc/v1/service.pb.gw.go - About 35 mins to fix
                  Severity
                  Category
                  Status
                  Source
                  Language