app/lib/angular/angular-resource.js
Function resourceFactory
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function resourceFactory(url, paramDefaults, actions) {
var route = new Route(url);
actions = extend({}, DEFAULT_ACTIONS, actions);
Function name
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Resource[name] = function(a1, a2, a3, a4) {
var params = {}, data, success, error;
/* jshint -W086 */ /* (purposefully fall through case statements) */
switch(arguments.length) {
Function setUrlParams
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setUrlParams: function(config, params, actionUrl) {
var self = this,
url = actionUrl || self.template,
val,
encodedVal;