sequelize/sequelize

View on GitHub

Showing 503 of 787 total issues

Avoid too many return statements within this function.
Open

      return [this.instance || data, data[0].$action === 'INSERT'];
Severity: Major
Found in src/dialects/mssql/query.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

          return [this.instance || data, rowCount];
    Severity: Major
    Found in src/dialects/mssql/query.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

            return this.handleSelectQuery(rows);
      Severity: Major
      Found in src/dialects/postgres/query.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return this._pushError(false, errorKey, e, optValue, validatorType);
        Severity: Major
        Found in src/instance-validator.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                return result;
          Severity: Major
          Found in src/dialects/postgres/query.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                  return this.handleShowIndexesQuery(data);
            Severity: Major
            Found in src/dialects/mssql/query.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                  return data;
              Severity: Major
              Found in src/dialects/mssql/query.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                      return parseInt(rowCount, 10);
                Severity: Major
                Found in src/dialects/postgres/query.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

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

                    Avoid too many return statements within this function.
                    Open

                        return this._joinKeyValue(key, opValue, this.OperatorMap[Op.eq], options.prefix);
                    Severity: Major
                    Found in src/dialects/abstract/query-generator.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                              return this._joinKeyValue(
                                key,
                                value.map(identifier => this.quoteIdentifier(identifier)).join('.'),
                                comparator,
                                options.prefix
                      Severity: Major
                      Found in src/dialects/abstract/query-generator.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                            return '1=1';
                        Severity: Major
                        Found in src/dialects/abstract/query-generator.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                return data.affectedRows;
                          Severity: Major
                          Found in src/dialects/mysql/query.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  return this._joinKeyValue(key, opValue, this.OperatorMap[Op.eq], options.prefix);
                            Severity: Major
                            Found in src/dialects/abstract/query-generator.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                    return this._joinKeyValue(this.OperatorMap[key], opValue, this.OperatorMap[Op.eq], options.prefix);
                              Severity: Major
                              Found in src/dialects/abstract/query-generator.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                      return data[0];
                                Severity: Major
                                Found in src/dialects/mysql/query.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        return `${smth.fn}(${smth.args
                                          .map(arg => {
                                            if (arg instanceof Utils.SequelizeMethod) {
                                              return this.handleSequelizeMethod(arg, tableName, factory, options, prepend);
                                            }
                                  Severity: Major
                                  Found in src/dialects/abstract/query-generator.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                          return this._whereBind(this.OperatorMap[Op.or], key, value[Op.or], options);
                                    Severity: Major
                                    Found in src/dialects/abstract/query-generator.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                            if (smth.length === 0 || (smth.length > 0 && smth[0].length === 0)) return '1=1';
                                      Severity: Major
                                      Found in src/dialects/abstract/query-generator.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                return this.getWhereConditions(_smth, tableName, factory, options, prepend);
                                        Severity: Major
                                        Found in src/dialects/abstract/query-generator.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language