rootslab/syllabus

View on GitHub

Showing 63 of 94 total issues

Function commands has 110 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.commands = function ( encode, error ) {
    var Abaco = require( 'abaco' )
        , Bolgia = require( 'bolgia' )
        , parseIntArray = Abaco.parseIntArray
        , parseFloatArray = Abaco.parseFloatArray
Severity: Major
Found in lib/commands/hashes.js - About 4 hrs to fix

    Function infos has 104 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    exports.infos = ( function () {
    
        return {
    
            blpop : {
    Severity: Major
    Found in lib/infos/lists.js - About 4 hrs to fix

      Function commands has 98 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      exports.commands = function ( encode, error ) {
          var Abaco = require( 'abaco' )
              , parseIntArray = Abaco.parseIntArray
              , Bolgia = require( 'bolgia' )
              , doString = Bolgia.doString
      Severity: Major
      Found in lib/commands/sets.js - About 3 hrs to fix

        Function exports has 96 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        module.exports = ( function () {
            var util = require( 'util' )
                , Bolgia = require( 'bolgia' )
                , mix = Bolgia.mix
                , ooo = Bolgia.circles
        Severity: Major
        Found in lib/commands/index.js - About 3 hrs to fix

          Function infos has 95 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          exports.infos = ( function () {
          
              return {
          
                  hdel : {
          Severity: Major
          Found in lib/infos/hashes.js - About 3 hrs to fix

            Function infos has 94 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            exports.infos = ( function () {
            
                return {
            
                    sadd : {
            Severity: Major
            Found in lib/infos/sets.js - About 3 hrs to fix

              Function commands has 90 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              exports.commands = function ( encode, error ) {
                  var Abaco = require( 'abaco' )
                      , parseIntArray = Abaco.parseIntArray
                      , isArray = Array.isArray
                      ;
              Severity: Major
              Found in lib/commands/lists.js - About 3 hrs to fix

                File server.js has 300 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /*
                 * SERVER mix-ins.
                 */
                
                exports.commands = function ( encode, error ) {
                Severity: Minor
                Found in lib/commands/server.js - About 3 hrs to fix

                  Function commands has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  exports.commands = function ( encode, error ) {
                      var Abaco = require( 'abaco' )
                          , Bolgia = require( 'bolgia' )
                          , parseIntArray = Abaco.parseIntArray
                          , parseFloatArray = Abaco.parseFloatArray
                  Severity: Major
                  Found in lib/commands/geo.js - About 2 hrs to fix

                    Function exports has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
                    Open

                    module.exports = ( function () {
                        var util = require( 'util' )
                            , Bolgia = require( 'bolgia' )
                            , mix = Bolgia.mix
                            , ooo = Bolgia.circles
                    Severity: Minor
                    Found in lib/commands/index.js - About 2 hrs to fix

                    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

                    module.exports = ( function () {
                        var isArray = Array.isArray
                            ;
                        return {
                            // for monitor events / messages
                    Severity: Major
                    Found in lib/formatters/index.js - About 2 hrs to fix

                      Function commands has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      exports.commands = function ( encode, error ) {
                          var Abaco = require( 'abaco' )
                              , Bolgia = require( 'bolgia' )
                              , parseIntArray = Abaco.parseIntArray
                              , doString = Bolgia.doString
                      Severity: Major
                      Found in lib/commands/scripting.js - About 2 hrs to fix

                        Function infos has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        exports.infos = ( function () {
                        
                            return {
                        
                                psubscribe : {
                        Severity: Major
                        Found in lib/infos/pubsub.js - About 2 hrs to fix

                          Function infos has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          exports.infos = ( function () {
                          
                              return {
                          
                                  eval : {
                          Severity: Minor
                          Found in lib/infos/scripting.js - About 1 hr to fix

                            Function commands has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            exports.commands = function ( encode, error ) {
                                var Abaco = require( 'abaco' )
                                    , parseIntArray = Abaco.parseIntArray
                                    , isArray = Array.isArray
                                    // handler for unsubscribe and punscubscripe
                            Severity: Minor
                            Found in lib/commands/pubsub.js - About 1 hr to fix

                              Function info has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      , info = function ( cname ) {
                                          var carr = cname ? cname.toLowerCase().split( ' ' ) : [ 'NONE' ]
                                              , c = 0
                                              , o = syllabus.commands
                                              , x = infos
                              Severity: Minor
                              Found in lib/syllabus.js - About 1 hr to fix

                                Function exports has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                                Open

                                module.exports = ( function () {
                                    var isArray = Array.isArray
                                        ;
                                    return {
                                        // for monitor events / messages
                                Severity: Minor
                                Found in lib/formatters/index.js - About 1 hr to fix

                                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

                                        , sort : function ( key, opt, cback ) {
                                            var list = opt
                                                , order = null
                                                , limit = null
                                                , by = null
                                Severity: Minor
                                Found in lib/commands/keys.js - About 1 hr to fix

                                  Function infos has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  exports.infos = ( function () {
                                  
                                      return {
                                  
                                          auth : {
                                  Severity: Minor
                                  Found in lib/infos/connection.js - About 1 hr to fix

                                    Function infos has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    exports.infos = ( function () {
                                    
                                        return {
                                    
                                            geoadd : {
                                    Severity: Minor
                                    Found in lib/infos/geo.js - About 1 hr to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language