betajs/betajs-data

View on GitHub
src/data/stores/base/store_history.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function sourceUpdate has 49 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            sourceUpdate: function (row, data, dummy_ctx, pre_data, transaction_id) {
                return this.criticalSection("commit", function () {
                    this.commitId++;
                    var row_id = Types.is_object(row) ? row[this._options.source_id_key] : row;
                    var target_type = "update";
Severity: Minor
Found in src/data/stores/base/store_history.js - About 1 hr to fix

    Function sourceRemove has 38 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                sourceRemove: function (id, data) {
                    return this.criticalSection("commit", function () {
                        this.commitId++;
                        var cont = Promise.create();
                        if (this._options.combine_insert_remove) {
    Severity: Minor
    Found in src/data/stores/base/store_history.js - About 1 hr 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

        There are no issues that match your filters.

        Category
        Status