Kinvey/js-sdk

View on GitHub

Showing 146 of 349 total issues

Avoid too many return statements within this function.
Open

          return new InsufficientCredentialsError(message, debug);
Severity: Major
Found in packages/js-sdk/src/http/response.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

              return new InvalidQuerySyntaxError(message, debug);
    Severity: Major
    Found in packages/js-sdk/src/http/response.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

              return await this.setAuthorization(KinveyHttpAuth.Master);
      Severity: Major
      Found in packages/js-sdk/src/http/headers.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                  return new NotFoundError(message, debug);
        Severity: Major
        Found in packages/js-sdk/src/http/response.ts - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                    return new InvalidCredentialsError(message, debug);
          Severity: Major
          Found in packages/js-sdk/src/http/response.ts - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                  return new KinveyError();
            Severity: Major
            Found in packages/js-sdk/src/http/response.ts - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                  return WebSQL;
              Severity: Major
              Found in packages/html5-sdk/src/storage/index.ts - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                          return new IndirectCollectionAccessDisallowedError(message, debug);
                Severity: Major
                Found in packages/js-sdk/src/http/response.ts - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                            return new JSONParseError(message, debug);
                  Severity: Major
                  Found in packages/js-sdk/src/http/response.ts - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                              return new KinveyInternalErrorStop(message, debug);
                    Severity: Major
                    Found in packages/js-sdk/src/http/response.ts - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                              return await this.setAuthorization(KinveyHttpAuth.Session);
                      Severity: Major
                      Found in packages/js-sdk/src/http/headers.ts - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                  return new CORSDisabledError(message, debug);
                        Severity: Major
                        Found in packages/js-sdk/src/http/response.ts - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                    return new UserAlreadyExistsError(message, debug);
                          Severity: Major
                          Found in packages/js-sdk/src/http/response.ts - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                      return new InsufficientCredentialsError(message, debug);
                            Severity: Major
                            Found in packages/js-sdk/src/http/response.ts - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                        return await this.setAuthorization(KinveyHttpAuth.Master);
                              Severity: Major
                              Found in packages/js-sdk/src/http/headers.ts - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                          return {
                                            _id,
                                            operation: state.operation,
                                            error: new Error('Unable to push item in sync table because the event was not recognized.')
                                          };
                                Severity: Major
                                Found in packages/js-sdk/src/datastore/sync.ts - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                            return new StaleRequestError(message, debug);
                                  Severity: Major
                                  Found in packages/js-sdk/src/http/response.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                              return new ParameterValueOutOfRangeError(message, debug);
                                    Severity: Major
                                    Found in packages/js-sdk/src/http/response.ts - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                return new ServerError(message, debug);
                                      Severity: Major
                                      Found in packages/js-sdk/src/http/response.ts - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                            return null;
                                        Severity: Major
                                        Found in packages/js-sdk/src/http/response.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language