Showing 105 of 156 total issues
Function Datasources
has a Cognitive Complexity of 314 (exceeds 5 allowed). Consider refactoring. Open
var Datasources = (function() {
'use strict';
var request = require('request');
var Q = require('q');
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function Datasources
has 1272 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Datasources = (function() {
'use strict';
var request = require('request');
var Q = require('q');
Function Account
has 1239 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Account = (function() {
'use strict';
var request = require('request');
var Q = require('q');
Function Account
has a Cognitive Complexity of 288 (exceeds 5 allowed). Consider refactoring. Open
var Account = (function() {
'use strict';
var request = require('request');
var Q = require('q');
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function Project
has 1165 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Project = (function() {
'use strict';
var request = require('request');
var Q = require('q');
Function Project
has a Cognitive Complexity of 274 (exceeds 5 allowed). Consider refactoring. Open
var Project = (function() {
'use strict';
var request = require('request');
var Q = require('q');
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
File datasources.api.28.io.js
has 1276 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*jshint -W069 */
/**
* <p>These resources can be used to manage and explore data sources. The endpoint of these resources is based on your project name. For instance, if your 28.io project is named <code>myproject</code>, your endpoint for this API will be will be: <code>http://myproject.28.io/v1/_datasources</code>.</p>
* @class Datasources
* @param {(string|object)} [domainOrOptions] - The project domain or options object. If object, see the object's optional properties.
Function Queries
has 652 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Queries = (function() {
'use strict';
var request = require('request');
var Q = require('q');
File account.api.28.io.js
has 1243 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*jshint -W069 */
/**
*
* @class Account
* @param {(string|object)} [domainOrOptions] - The project domain or options object. If object, see the object's optional properties.
Function Queries
has a Cognitive Complexity of 152 (exceeds 5 allowed). Consider refactoring. Open
var Queries = (function() {
'use strict';
var request = require('request');
var Q = require('q');
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
File project.api.28.io.js
has 1169 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*jshint -W069 */
/**
* <div><p>These resources can be used to manage projects.
The endpoint of these resources is based on the portal URI and your project name.
For instance, if your 28.io project is named <code>myproject</code>,
Function Modules
has a Cognitive Complexity of 96 (exceeds 5 allowed). Consider refactoring. Open
var Modules = (function() {
'use strict';
var request = require('request');
var Q = require('q');
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function Modules
has 377 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Modules = (function() {
'use strict';
var request = require('request');
var Q = require('q');
File queries.api.28.io.js
has 656 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*jshint -W069 */
/**
* <p>These resources can be used to manage and execute queries. The endpoint of these resources is based on your project name. For instance, if your 28.io project is named <code>myproject</code>, your endpoint for this API will be: <code>http://myproject.28.io/v1/_queries</code>.</p>
* @class Queries
* @param {(string|object)} [domainOrOptions] - The project domain or options object. If object, see the object's optional properties.
File modules.api.28.io.js
has 381 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*jshint -W069 */
/**
* <p>These resources can be used to manage JSONiq and XQuery <a href="http://www.w3.org/TR/xquery-30/#dt-library-module" target="_blank">library modules</a>. The endpoint of these resources is based on your project name. For instance, if your 28.io project is named <code>myproject</code>, your endpoint for this API will be: <code>http://myproject.28.io/v1/_modules</code>.</p><p class='callout-warning'>This API does not allow to retrieve the source code, modify or delete system modules.</p>
* @class Modules
* @param {(string|object)} [domainOrOptions] - The project domain or options object. If object, see the object's optional properties.
Function Batch
has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring. Open
var Batch = (function() {
'use strict';
var request = require('request');
var Q = require('q');
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function Batch
has 94 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Batch = (function() {
'use strict';
var request = require('request');
var Q = require('q');
Function Auth
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
var Auth = (function() {
'use strict';
var request = require('request');
var Q = require('q');
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function testDefaultMongoDB
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Project.prototype.testDefaultMongoDB = function(parameters) {
if (parameters === undefined) {
parameters = {};
}
var deferred = Q.defer();
Function createAccount
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Account.prototype.createAccount = function(parameters) {
if (parameters === undefined) {
parameters = {};
}
var deferred = Q.defer();