oleksiyk/no-riak

View on GitHub
lib/crdt/map.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function _setValue has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

RMap.prototype._setValue = function (v) {
    var self = this;

    if (v && v.map_value) {
        self._fields = v.map_value.map(function (entry) {
Severity: Minor
Found in lib/crdt/map.js - About 1 hr to fix

    Function _fields has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            self._fields = v.map_value.map(function (entry) {
                var value;
                switch (mapFieldTypes[entry.field.type]) {
                    case 'COUNTER':
                        value = new Counter();
    Severity: Minor
    Found in lib/crdt/map.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status