betajs/betajs-data

View on GitHub

Showing 81 of 182 total issues

Avoid deeply nested control flow statements.
Open

                                        if (this instanceof item)
                                            classname = item;
Severity: Major
Found in src/modelling/models.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(database, table_name, id_key, separate_ids, table_options) {
        Severity: Minor
        Found in src/data/databases/database_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 _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 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 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 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 sourceUpdate has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                                  sourceUpdate: function (row, data, dummy_ctx, pre_data, transaction_id) {
                      Severity: Minor
                      Found in src/data/stores/base/store_history.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 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 update has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

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

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

                                            cacheUpdate: function (id, data, options, ctx, transaction_id) {
                                Severity: Minor
                                Found in src/data/stores/partial/cached_store.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 _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 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 _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