src/deep-fs/lib/Local/S3FSRelativeFSExtender.js
Function EXTEND_OBJECT
has 188 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
get EXTEND_OBJECT() {
let extendObject = {
bucket: 'relative_fs',
path: '',
s3: {}, // @todo: mock `AWS.S3()`
Function EXTEND_OBJECT
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
Open
get EXTEND_OBJECT() {
let extendObject = {
bucket: 'relative_fs',
path: '',
s3: {}, // @todo: mock `AWS.S3()`
- 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 S3FSRelativeFSExtender.js
has 258 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Created by AlexanderC on 10/27/15.
*/
'use strict';
Function listContents
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
listContents: (pathStr, marker, callback = null) => {
let absPath = path.join(this.cwd, pathStr);
let globResponseObj = {
Marker: marker,
Function _readdirp
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
static _readdirp(dir, basePath = null) {
let _files = [];
let files = fs.readdirSync(dir);
- 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"