sahat/satellizer

View on GitHub
examples/ionic/www/lib/ionic/js/angular/angular-resource.js

Summary

Maintainability
D
2 days
Test Coverage

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

    this.$get = ['$http', '$q', function($http, $q) {

      var noop = angular.noop,
        forEach = angular.forEach,
        extend = angular.extend,
Severity: Major
Found in examples/ionic/www/lib/ionic/js/angular/angular-resource.js - About 1 day to fix

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

          function resourceFactory(url, paramDefaults, actions, options) {
            var route = new Route(url, options);
    
            actions = extend({}, provider.defaults.actions, actions);
    
    
    Severity: Major
    Found in examples/ionic/www/lib/ionic/js/angular/angular-resource.js - About 5 hrs to fix

      Function name has 93 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 examples/ionic/www/lib/ionic/js/angular/angular-resource.js - About 3 hrs to fix

        File angular-resource.js has 256 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /**
         * @license AngularJS v1.3.13
         * (c) 2010-2014 Google, Inc. http://angularjs.org
         * License: MIT
         */
        Severity: Minor
        Found in examples/ionic/www/lib/ionic/js/angular/angular-resource.js - About 2 hrs to fix

          Function setUrlParams has 45 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 examples/ionic/www/lib/ionic/js/angular/angular-resource.js - About 1 hr to fix

            Function promise has 26 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                        var promise = $http(httpConfig).then(function(response) {
                          var data = response.data,
                            promise = value.$promise;
            
                          if (data) {
            Severity: Minor
            Found in examples/ionic/www/lib/ionic/js/angular/angular-resource.js - About 1 hr to fix

              There are no issues that match your filters.

              Category
              Status