denniss17/pimatic-angular-material-frontend

View on GitHub
app/services/store.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function get has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        get: function (type, id, skipApi) {
            var self = this;
            var item;
            var date;

Severity: Minor
Found in app/services/store.js - About 1 hr to fix

    Function add has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            add: function (type, object, skipApi) {
                var adapter = this.adapter;
                var self = this;
                var add;
    
    
    Severity: Minor
    Found in app/services/store.js - About 1 hr to fix

      Function remove has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              remove: function (type, object, skipApi) {
                  var self = this;
                  var remove;
      
                  this.$log.debug('store', 'remove()', 'type=', type, 'object=', object, 'skipApi=', skipApi);
      Severity: Minor
      Found in app/services/store.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status