arey/angular-musicbrainz

View on GitHub
app/lib/angular-resource/angular-resource.js

Summary

Maintainability
C
1 day
Test Coverage

Function resourceFactory has 122 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function resourceFactory(url, paramDefaults, actions) {
      var route = new Route(url);

      actions = extend({}, DEFAULT_ACTIONS, actions);

Severity: Major
Found in app/lib/angular-resource/angular-resource.js - About 4 hrs to fix

    Function name has 88 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            Resource[name] = function(a1, a2, a3, a4) {
              var params = {}, data, success, error;
    
              /* jshint -W086 */ /* (purposefully fall through case statements) */
              switch(arguments.length) {
    Severity: Major
    Found in app/lib/angular-resource/angular-resource.js - About 3 hrs to fix

      Function setUrlParams has 43 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

            setUrlParams: function(config, params, actionUrl) {
              var self = this,
                  url = actionUrl || self.template,
                  val,
                  encodedVal;
      Severity: Minor
      Found in app/lib/angular-resource/angular-resource.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status