Showing 23 of 90 total issues
Function constructor
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor: function (schema, refResolver) {
logger.debug("Creating reader for schema", schema);
if (!refResolver) {
Function constructor
has 99 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor: function (reader, provider, factoryPlugins, servicePlugins) {
var that = this,
methodsHash = {},
methodsArr = [],
Function constructor
has 94 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor: function () {
this.type = "mixin";
this.fn = function (service) {
service.methodName = this.methodName;
Function fn
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.fn = function (service) {
service.methodName = this.methodName;
service.methodArgs = this.methodArgs;
service.identityAttributes = this.identityAttributes;
File ZypSMDReader.js
has 308 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
"use strict";
/**
* Parses an SMD and provides methods to read information from it for working with RESTful services.
* Uses the format defined by Kris Zyp and utilized by Dojo for RPC stores
*/
Function constructor
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor: function (config) {
var calls = [], executed = false,
requests = [];
this.autoRefreshInterval = config.autoRefreshInterval || 0;
Function constructor
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor: function (delegate) {
var storage = new WebStorage(),
cacheId = "circuits.retrycache",
Function invoke
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
invoke: function (params, plugins) {
logger.debug("Calling service method: " + this.name + " with params", params);
var that = this,
provider = this.provider,
File TestPluginMatcher.js
has 280 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
define([
"circuits/PluginMatcher",
"circuits/util",
"circuits/declare"
], function (
File TestServicePlugins.js
has 276 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
define([
"circuits/ServiceFactory",
"circuits/Service",
"circuits/ZypSMDReader",
"circuits/Request",
Function invokeXhrSend
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
invokeXhrSend: function (params) {
var xhr = new XMLHttpRequest(),
async = typeof (params.asynchronous) === "boolean" ? params.asynchronous : this.asynchronous,
readystatechange = function () {
Function constructor
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor: function (config) {
var namespace = (config && config.namespace) || this.declaredClass,
getNamespaceObject = function (key, storage) {
var item = JSON.parse(storage.getItem(namespace));
return item[key];
Function convertCallbackParam
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.convertCallbackParam = function (param) {
var ret = param || [], plugin;
if (param && Object.prototype.toString.call(param) !== "[object Array]") {
ret = [];
Function invokeJsonpRequest
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
invokeJsonpRequest: function (params) {
var element = document.createElement('script'),
headElement = document.getElementsByTagName('head')[0],
load = params.load,
error = params.error,
Function processResponse
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
processResponse: function (statusCode, data, plugins, ioArgs) {
var isList = this.reader.isListResponse(this.name),
//TODO: "any" is JSONSchema default if no type is defined. this should come through a model though so we aren't tacking it on everywhere
returnType = this.reader.getResponseSchema(this.name).type || "any", //this could fail if there is no "returns" block on the method
payload,
Function execute
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.execute = function (callback, scope) {
var that = this;
if (this.hasBeenExecuted()) {
if (!this.executionComplete()) {
Function invokeJsonpRequest
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
invokeJsonpRequest: function (params) {
var element = document.createElement('script'),
headElement = document.getElementsByTagName('head')[0],
load = params.load,
error = params.error,
Function resolveProperties
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function resolveProperties(schema) {
logger.debug("Resolving sub-properties for " + schema.id);
// resolve inherited global parameters
Function exports
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(config){
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
Function processRequest
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
processRequest: function (payload, plugins, ioArgs) {
var writePayload = payload || "", intermediate, that = this;
// Very simiplistic payload type coercion
if (this.requestPayloadName && !payload[this.requestPayloadName]) {