betajs/betajs-data

View on GitHub

Showing 81 of 182 total issues

Avoid deeply nested control flow statements.
Open

                                if (Math.sign((index.comparator())(currentKey, lastKey)) === Math.sign(primarySortDirection))
                                    return null;
Severity: Major
Found in src/data/queries/query_engine.js - About 45 mins to fix

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

                    update: function(groupValue, newItemValue, oldItemValue, itemIndex, itemCount, item) {
    Severity: Minor
    Found in src/modelling/grouped.js - About 45 mins to fix

      Consider simplifying this complex logical expression.
      Open

                      if (this.option("auto_update") && (!this.isNew() || (!this.__disableSaveOnChange && this.__saveOnChange && (!this.__saveOnChangeWeak || !!value))))
                          this.save();
      Severity: Major
      Found in src/modelling/models.js - About 40 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

          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/rest_invokers.js - About 35 mins to fix

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

                    compileIndexedQuery: function(constrainedQuery, constrainedQueryCapabilities, constrainedQueryFunction, constrainedQueryContext, indices) {
            Severity: Minor
            Found in src/data/queries/query_engine.js - About 35 mins to fix

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

                          _remoteUpdate: function (row, data, ctx, pre_data, transaction_id) {
              Severity: Minor
              Found in src/data/stores/partial/partial_store.js - About 35 mins to fix

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

                             _toData: 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 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 get has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                                              "get": 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 restInvoke has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

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

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

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

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

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

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

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

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

                                               restInvoke: function (method, uri, 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 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 _updated has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                                _updated: function (row, data, ctx, pre_data, transaction_id) {
                                        Severity: Minor
                                        Found in src/data/stores/base/write_store.js - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language