Showing 63 of 94 total issues
Function commands
has 110 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.commands = function ( encode, error ) {
var Abaco = require( 'abaco' )
, Bolgia = require( 'bolgia' )
, parseIntArray = Abaco.parseIntArray
, parseFloatArray = Abaco.parseFloatArray
Function infos
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.infos = ( function () {
return {
blpop : {
Function commands
has 98 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.commands = function ( encode, error ) {
var Abaco = require( 'abaco' )
, parseIntArray = Abaco.parseIntArray
, Bolgia = require( 'bolgia' )
, doString = Bolgia.doString
Function exports
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = ( function () {
var util = require( 'util' )
, Bolgia = require( 'bolgia' )
, mix = Bolgia.mix
, ooo = Bolgia.circles
Function infos
has 95 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.infos = ( function () {
return {
hdel : {
Function infos
has 94 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.infos = ( function () {
return {
sadd : {
Function commands
has 90 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.commands = function ( encode, error ) {
var Abaco = require( 'abaco' )
, parseIntArray = Abaco.parseIntArray
, isArray = Array.isArray
;
File server.js
has 300 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* SERVER mix-ins.
*/
exports.commands = function ( encode, error ) {
Function commands
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.commands = function ( encode, error ) {
var Abaco = require( 'abaco' )
, Bolgia = require( 'bolgia' )
, parseIntArray = Abaco.parseIntArray
, parseFloatArray = Abaco.parseFloatArray
Function exports
has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring. Open
Open
module.exports = ( function () {
var util = require( 'util' )
, Bolgia = require( 'bolgia' )
, mix = Bolgia.mix
, ooo = Bolgia.circles
- 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 exports
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = ( function () {
var isArray = Array.isArray
;
return {
// for monitor events / messages
Function commands
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.commands = function ( encode, error ) {
var Abaco = require( 'abaco' )
, Bolgia = require( 'bolgia' )
, parseIntArray = Abaco.parseIntArray
, doString = Bolgia.doString
Function infos
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.infos = ( function () {
return {
psubscribe : {
Function infos
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.infos = ( function () {
return {
eval : {
Function commands
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.commands = function ( encode, error ) {
var Abaco = require( 'abaco' )
, parseIntArray = Abaco.parseIntArray
, isArray = Array.isArray
// handler for unsubscribe and punscubscripe
Function info
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
, info = function ( cname ) {
var carr = cname ? cname.toLowerCase().split( ' ' ) : [ 'NONE' ]
, c = 0
, o = syllabus.commands
, x = infos
Function exports
has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring. Open
Open
module.exports = ( function () {
var isArray = Array.isArray
;
return {
// for monitor events / messages
- 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 sort
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
, sort : function ( key, opt, cback ) {
var list = opt
, order = null
, limit = null
, by = null
Function infos
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.infos = ( function () {
return {
auth : {
Function infos
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.infos = ( function () {
return {
geoadd : {