XYOracleNetwork/sdk-xyo-client-js

View on GitHub

Showing 114 of 365 total issues

Avoid too many return statements within this function.
Open

          return (
            mod
              ? Array.isArray(mod)
                ? mod
                : [mod]

    Avoid too many return statements within this function.
    Open

          return false
    Severity: Major
    Found in packages/modules/packages/module/packages/model/src/lib/serializable.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

        return false
      Severity: Major
      Found in packages/modules/packages/module/packages/model/src/lib/serializable.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                    return

          Avoid too many return statements within this function.
          Open

                  return await this._localResolver.resolve(filter, mutatedOptions)

            Avoid too many return statements within this function.
            Open

                return WitnessWrapper.wrap(mod, account)

              Avoid too many return statements within this function.
              Open

                          return [cachedResult] as T[]

                Avoid too many return statements within this function.
                Open

                      return flatResult.filter(duplicateModules)

                  Avoid too many return statements within this function.
                  Open

                          return Number.POSITIVE_INFINITY

                    Avoid too many return statements within this function.
                    Open

                            return Object.values(this.modules) as T[]

                      Avoid too many return statements within this function.
                      Open

                              return (
                                mod
                                  ? Array.isArray(mod)
                                    ? mod
                                    : [mod]

                        Avoid too many return statements within this function.
                        Open

                                return frequency * 24 * 60 * 60 * 1000

                          Avoid too many return statements within this function.
                          Open

                                return

                            Avoid too many return statements within this function.
                            Open

                                      return []

                              Avoid too many return statements within this function.
                              Open

                                      return (
                                        mod
                                          ? Array.isArray(mod)
                                            ? mod
                                            : [mod]

                                Avoid too many return statements within this function.
                                Open

                                            return []

                                  Avoid too many return statements within this function.
                                  Open

                                    return false
                                  Severity: Major
                                  Found in packages/protocol/packages/core/packages/hash/src/hasEmptyFields.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                return this.resolveByQuery<T>(Object.values(this.modules), filter.query)

                                      Avoid too many return statements within this function.
                                      Open

                                              return (await Promise.all(filter.address.map(item => this.resolve(item, options)))).filter(exists)

                                        Avoid too many return statements within this function.
                                        Open

                                                return []
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language