sequelize/sequelize

View on GitHub

Showing 503 of 787 total issues

Avoid too many return statements within this function.
Open

  return value;
Severity: Major
Found in src/utils.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/mariadb/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 [this.instance, null];
          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.handleSelectQuery(data);
            Severity: Major
            Found in src/dialects/mariadb/query.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    return data[0];
              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.handleShowConstraintsQuery(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 `CAST(${result} AS ${smth.type.toUpperCase()})`;
                  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,
                                `(VALUES ${value[Op.values].map(item => `(${this.escape(item)})`).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 this.handleSequelizeMethod(value);
                      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 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 [result, data.affectedRows === 1];
                            Severity: Major
                            Found in src/dialects/mysql/query.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 data;
                                Severity: Major
                                Found in src/dialects/mysql/query.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        return [data, data];
                                  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, `(${this.escape(value, field)})`, 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 this._joinKeyValue(key, this.escape(value, field, escapeOptions), 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 this.escape(smth);
                                        Severity: Major
                                        Found in src/dialects/abstract/query-generator.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language