betajs/betajs-data

View on GitHub

Showing 81 of 182 total issues

Function insert has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

                        "insert": function (member, uriData, post, get, ctx) {
Severity: Minor
Found in src/data/stores/invokers/rest_invokers.js - About 35 mins to fix

    Function constructor has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

                constructor: function(model, foreign_key, foreign_type_key, table_lookup_function, options) {
    Severity: Minor
    Found in src/modelling/associations/polymorphic_belongs_to_associations.js - About 35 mins to fix

      Function routeredRestInvoke has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              routeredRestInvoke: function (member, uriData, post, get, ctx) {}
      Severity: Minor
      Found in src/data/stores/invokers/invoker_store.js - About 35 mins to fix

        Function update has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                                "update": function (member, uriData, post, get, ctx) {
        Severity: Minor
        Found in src/data/stores/invokers/rest_invokers.js - About 35 mins to fix

          Function _toContext has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                       _toContext: function (member, uriData, post, get, ctx) {
          Severity: Minor
          Found in src/data/stores/invokers/rest_invokers.js - About 35 mins to fix

            Function _undecodedUpdated has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                        _undecodedUpdated: function (id, updatedData, ctx, row, transaction_id) {},
            Severity: Minor
            Found in src/data/stores/delegators/contextualized_store.js - About 35 mins to fix

              Function constructor has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                          constructor: function(model, foreign_table, foreign_key, foreign_type_key, options) {
              Severity: Minor
              Found in src/modelling/associations/polymorphic_has_many_key_associations.js - About 35 mins to fix

                Avoid too many return statements within this function.
                Open

                                    return false;
                Severity: Major
                Found in src/data/queries/queries.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                                      return promise;
                  Severity: Major
                  Found in src/collections/abstract_query_collection.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                    return this.validate_query(value, capabilities);
                    Severity: Major
                    Found in src/data/queries/queries.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                          return (!qopts2.limit || (qopts2.limit >= qopts.skip));
                      Severity: Major
                      Found in src/data/queries/constrained_queries.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                    return Queries.subsumizes(constrainedQuery.query, constrainedQuery2.query);
                        Severity: Major
                        Found in src/data/queries/constrained_queries.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                          return !("skip" in qopts2) || (!qopts.limit || (qopts.limit >= qopts2.skip));
                          Severity: Major
                          Found in src/data/queries/constrained_queries.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                            return promise.and(this._execute(Objs.tree_extend(Objs.clone(this._query, 2), {
                                                options: {
                                                    skip: currentSkip + currentLimit,
                                                    limit: !nextLimit ? null : nextLimit - currentLimit
                                                }
                            Severity: Major
                            Found in src/collections/abstract_query_collection.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                                          return false;
                              Severity: Major
                              Found in src/data/queries/queries.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                                                return false;
                                Severity: Major
                                Found in src/data/queries/queries.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                                          return true;
                                  Severity: Major
                                  Found in src/data/queries/queries.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                            return false;
                                    Severity: Major
                                    Found in src/data/queries/queries.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                  return false;
                                      Severity: Major
                                      Found in src/data/queries/queries.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                        return this.__error_string;
                                        Severity: Major
                                        Found in src/modelling/validations/regex_validators.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language