Showing 6 of 8 total issues
Function client
has 137 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports.client = function (httpService, dataParser, apiConfig) {
var auth = require('./util/auth-header');
http = httpService;
parser = dataParser;
config = apiConfig;
Function resource
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
resource: function (resourceName, query) {
return {
action: function (method, data, callback, progress) {
var path = '/' + resourceName;
Function action
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
action: function (method, data, callback, progress) {
var path = '/' + resourceName;
if (data === null) {
data = undefined;
Function request
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports.request = function (config, callback, progress) {
var parsedUrl = url.parse(config.url);
var requestSetup = {
host: parsedUrl.hostname,
Function request
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports.request = function (config, callback, progress) {
if (typeof XMLHttpRequest === 'undefined') {
if (typeof callback === 'function') {
callback(new Error('XMLHttpRequest not available'), null);
}
Function exports
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
gluejs: {