sequelize/sequelize

View on GitHub

Showing 454 of 746 total issues

Avoid too many return statements within this function.
Open

      return this.quote(smth.col, factory);
Severity: Major
Found in lib/dialects/abstract/query-generator.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

              return this._joinKeyValue(key, `(VALUES ${value[Op.values].map(item => `(${this.escape(item)})`).join(', ')})`, comparator, options.prefix);
    Severity: Major
    Found in lib/dialects/abstract/query-generator.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

              return this._joinKeyValue(key, this.escape(`%${value}%`), comparator, options.prefix);
      Severity: Major
      Found in lib/dialects/abstract/query-generator.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            return this._joinKeyValue(key, this.escape(value, field, escapeOptions), comparator, options.prefix);
        Severity: Major
        Found in lib/dialects/abstract/query-generator.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                return [results, metaData];
          Severity: Major
          Found in lib/dialects/sqlite/query.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                      return include;
            Severity: Major
            Found in lib/model.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    return this.dataValues[key];
              Severity: Major
              Found in lib/model.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                      return dataTypes.ARRAY.prototype.stringify(val, { escape: partialEscape });
                Severity: Major
                Found in lib/sql-string.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                        return values;
                  Severity: Major
                  Found in lib/model.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                              return this;
                    Severity: Major
                    Found in lib/model.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return [result, metaData.changes];
                      Severity: Major
                      Found in lib/dialects/sqlite/query.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                          return `${(prependN ? "N'" : "'") + val}'`;
                        Severity: Major
                        Found in lib/sql-string.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                              return Promise.try(() => {
                                // Run before hook
                                if (options.hooks) {
                                  return this.runHooks('beforeBulkCreate', instances, options);
                                }
                          Severity: Major
                          Found in lib/model.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  return results;
                            Severity: Major
                            Found in lib/dialects/sqlite/query.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                  return this;
                              Severity: Major
                              Found in lib/model.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                    return arrayToList(val, timeZone, dialect, format);
                                Severity: Major
                                Found in lib/sql-string.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        return results;
                                  Severity: Major
                                  Found in lib/dialects/sqlite/query.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                          return metaData.changes;
                                    Severity: Major
                                    Found in lib/dialects/sqlite/query.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                return include;
                                      Severity: Major
                                      Found in lib/model.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                            return this.dataValues;
                                        Severity: Major
                                        Found in lib/model.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language