Showing 6 of 6 total issues
Function getKeyIndexes
has a Cognitive Complexity of 66 (exceeds 5 allowed). Consider refactoring. Open
Open
exports.getKeyIndexes = function (commandName, args, options) { var command = commands[commandName] if (!command) { throw new Error('Unknown command ' + commandName) }
- Read upRead up
Function getKeyIndexes
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.getKeyIndexes = function (commandName, args, options) { var command = commands[commandName] if (!command) { throw new Error('Unknown command ' + commandName) }
Avoid deeply nested control flow statements. Open
Open
if (parseExternalKey) { keys.push([i, getExternalKeyNameLength(args[i])]) } else { keys.push(i) }
Avoid deeply nested control flow statements. Open
Open
for (var j = i + 1; j < args.length; j++) { keys.push(j) }
Avoid deeply nested control flow statements. Open
Open
if (parseExternalKey) { keys.push([i, getExternalKeyNameLength(args[i])]) } else { keys.push(i) }
Avoid deeply nested control flow statements. Open
Open
} else if (directive === 'STORE') { i += 1 keys.push(i) }