Showing 117 of 117 total issues
File Request.js
has 618 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* Created by AlexanderC on 6/10/15.
*/
'use strict';
Request
has 59 functions (exceeds 20 allowed). Consider refactoring. Open
export class Request {
/**
* @param {Action} action
* @param {Object} payload
* @param {String} method
Function methods
has 193 lines of code (exceeds 25 allowed). Consider refactoring. Open
get methods() {
let _this = this;
return {
Function EXTEND_OBJECT
has 188 lines of code (exceeds 25 allowed). Consider refactoring. Open
get EXTEND_OBJECT() {
let extendObject = {
bucket: 'relative_fs',
path: '',
s3: {}, // @todo: mock `AWS.S3()`
Kernel
has 51 functions (exceeds 20 allowed). Consider refactoring. Open
export class Kernel {
/**
* @param {Array} deepServices
* @param {String} context
*/
Function __deepRequireBrowser__
has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring. Open
window.__deepRequireBrowser__ = window.__deepRequireBrowser__ || (function (document, undefined) {
// Each module has the following properties (shorted to one letter to aid compression)
// - g: booleany, loadinG, truthy if this module has been requested for loading
// before. Used to prevent the same module being loaded twice
// - l: string, Location, the url location of this module
- 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 Token.js
has 384 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* Created by mgoria on 6/23/15.
*/
'use strict';
File Kernel.js
has 383 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* Created by mgoria on 5/26/15.
*/
/*eslint no-proto: 0*/
Token
has 38 functions (exceeds 20 allowed). Consider refactoring. Open
export class Token {
/**
* @returns {number}
*/
static get MAX_RETRIES() {
File ExtendModel.js
has 363 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* Created by Stefan Hariton on 6/26/15.
*/
'use strict';
DB
has 32 functions (exceeds 20 allowed). Consider refactoring. Open
export class DB extends Kernel.ContainerAware {
/**
* @param {Array} models
* @param {Object} tablesNames
* @param {Boolean} forcePartitionField
Log
has 32 functions (exceeds 20 allowed). Consider refactoring. Open
export class Log extends Kernel.ContainerAware {
/**
* @param {Object} drivers
*/
constructor(drivers = {}) {
Function __deepRequireBrowser__
has 99 lines of code (exceeds 25 allowed). Consider refactoring. Open
window.__deepRequireBrowser__ = window.__deepRequireBrowser__ || (function (document, undefined) {
// Each module has the following properties (shorted to one letter to aid compression)
// - g: booleany, loadinG, truthy if this module has been requested for loading
// before. Used to prevent the same module being loaded twice
// - l: string, Location, the url location of this module
Function methods
has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring. Open
get methods() {
let _this = this;
return {
- 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 getFolder
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
getFolder(name, msIdentifier = null) {
if (FS.FOLDERS.indexOf(name) === -1) {
throw new UnknownFolderException(name, FS.FOLDERS);
}
- 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 _parseLambda
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
_parseLambda() {
this._parseExternal();
// check if any Lambda response available
if (this._data) {
- 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
Service
has 29 functions (exceeds 20 allowed). Consider refactoring. Open
export class Service {
/**
* @returns {String}
*/
static get ANY() {
Action
has 29 functions (exceeds 20 allowed). Consider refactoring. Open
export class Action {
/**
* @param {Instance} resource
* @param {String} name
* @param {String} type
Runtime
has 27 functions (exceeds 20 allowed). Consider refactoring. Open
export class Runtime extends Interface {
/**
* @param {Object} kernel
*/
constructor(kernel) {
File DB.js
has 298 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* Created by AlexanderC on 6/15/15.
*/
'use strict';